jiffyclub / snakeviz

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

Auto save after a set time #115

Closed Mradr closed 5 years ago

Mradr commented 6 years ago

Is it possible to have it auto save/dump the output information after a given time? If not, is there a way to from within the code? I like the profiling, but having to stop my code to get the output is kind of annoying and I like to profile live if I can instead of waiting every time.

jiffyclub commented 6 years ago

You'd have to set it up manually yourself, but I think if you used the Profile class directly I wonder if you could arrange to have it stop profiling and dump the stats after a set period of time.