Join GitHub today
chrome profile: reported time isn't the same as dev tools #176
I was working on support an older format of cpu profile when i noticed some difference between the values reported by speedscope and by devtools :
Both are ordered by self time but we see a lot of difference in the list. Also we don't report the idle time in speedscope, i believe we should ?
I'm willing to put some time to inspect it, just opening an issue to keep you up to date ;)
It's possible this is a bug in the import, or a bug elsewhere in speedscope, though it isn't a specific goal to have this information map 1:1 w/ what devtools reports.
A specific example of something speedscope does that will result in a misalignment is to consider certain function calls to be part of whatever the previous stack was. As an example, the file format places
See e.g. #85.
I don't confidently know offhand what would be causing this misalignment though, so it may be worth investigating and understanding it. It's possible however, that we'll discover it's an intentional different interpretation of the data.
Well the main problem for me is that if the devtools show it in this specific way, i believe its meant to be understand like this.