pyutils / line_profiler

Line-by-line profiling for Python
Other
2.57k stars 118 forks source link

How to get timings for every hit #181

Open davideCremona opened 1 year ago

davideCremona commented 1 year ago

Hi, is there a way to collect data for every line hit?

Currently I can get only aggregated data (Mean time for each line, number of hits and percentage).

Erotemic commented 1 year ago

I think it's computing a mean using constant memory, so probably not. You could modify the code to get that, but I think it would come at a cost.