Revert "Revert "perf: Per-app performance profiles""

This reverts commit 27c2dcd081cf717c0dc7ac383afa9f708caaaf19.