jiffyclub / snakeviz

An in-browser Python profile viewer
https://jiffyclub.github.io/snakeviz/
Other
2.35k stars 138 forks source link

Add support for timeline visualization #65

Open stefanseefeld opened 8 years ago

stefanseefeld commented 8 years ago

It appears the existing visualization logic is already very close to Chrome's "flame chart" display (http://addyosmani.com/blog/devtools-flame-charts/). How hard would it be to add support for timeline displays to snakeviz ? As a first step, I suggest to separate the logic that loads data (which right now assumes the pstats-specific format) from the visualization. It would be great if one could "plug in" alternate input formats, and fine-tune the visualization, such that the x-axis could actually represent time.

ghost commented 3 years ago

You can use the firefox profiler with the cProfile generated output files: https://profiler.firefox.com/

Just click "load profile from file". Drawback: it needs to upload the file fist :cry: