Convert CPU profiles exported from Chrome to callgrind format
Convert CPU profiles exported from Chrome to callgrind format
Convert CPU profiles exported from Chrome to callgrind format.
This is only useful if you have KCacheGrind or QCacheGrind installed.
To install KCacheGrind on Linux:
sudo apt-get install kcachegrindTo install QCacheGrind on OS X:
brew install qcachegrindOnce you have that, grab the npm package:
npm install -g chrome2calltreeCollect a Chrome CPU profile either by using console.profile() or by
clicking buttons in the Developer Tools. Save the profile somewhere to disk.
Assuming you have KCacheGrind or QCacheGrind installed, you can then load your
CPU profile using chrome2calltree. Note that it might open in the background,
so you might have to manually switch applications.
chrome2calltree -k -i ~/Downloads/CPU-20131213T155541.cpuprofileIf you want to save the converted callgrind output for later, you can do that
using the -o flag.
chrome2calltree -i ~/Downloads/CPU-20131213T155541.cpuprofile -o foobar.profile…No open issues yet, or sync has not completed.