jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.45k stars 237 forks source link

[Question] How to see frame instances count #436

Closed Goose97 closed 1 year ago

Goose97 commented 1 year ago

This is not a bug submission but rather a discussion/question.

Is there any way to know the instances count of a given frame. Currently, we only show the total/self time accross all instances. My use case is measuring how many times a function is invoked.

image

jlfwong commented 1 year ago

There's no way at the moment. In the general case, it wouldn't make sense to have in the interface because many of the profile formats speedscope ingests are sampling profiles rather than instrumented profiles, so the data to answer that question doesn't exist in the profile output.