Profiling GUI [WIP]

This is WIP version of profiling GUI, I'm opening this to keep track of changes, do reviews, discuss etc.

I'm also opening a PR to shims.

I'll squash the commits once I'm done.
I included this patch too, because otherwise I can't run anything. I can remove this part after we fixed the issue with comments.