nvdv / vprof

Visual profiler for Python
BSD 2-Clause "Simplified" License
3.95k stars 154 forks source link

Allow having a fixed number of samples #72

Closed adrientetar closed 6 years ago

adrientetar commented 6 years ago

I'm using the flame graph and it's hard to make running time comparisons directly as the "Total samples" number changes everytime and so the "Run time" displayed does not match between runs.

nvdv commented 6 years ago

Hi, "Total samples" is different because run time is different since program environment (CPU load, available memory etc.) is not stable. Profiler just samples stack of running program at regular intervals.