Revert "Revert "Add perf profiles""

This reverts commit 28d4c9eb9e302fde2e606c9d71e414a7f1f0f65d.