profiler: getFlameGraphTiming is slow

STR:

Here is a recording of that slowness, with getFlameGraphTiming focused. https://perfht.ml/2p0EXzK

Specifically the call tree method getDisplayData is the culprit in being the most slow. The results are already cached, but I think we need to computer fewer things, or provide another avenue to get that data that isn’t so expensive.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Ah yes, thanks @brisad! Definitely you should use a simpler method instead of getDisplayData. In the profile’s inverted tree, extractFaviconFromLibname stands out right after getChildren so I think it’s a worthwhile optimization.