vpelletier / pprofile

Line-granularity, thread-aware deterministic and statistic pure-python profiler
GNU General Public License v2.0
447 stars 28 forks source link

Clarify Callgrind Event Types #20

Closed noisyboiler closed 7 years ago

noisyboiler commented 7 years ago

Hi @vpelletier

Dumping stats to be visualised in CacheGrind gives us 3 costing options for inclusive and self sorting: hits, us, us/hit.

screen shot 2016-12-08 at 09 07 59

Could you clarify exactly what these Event Types are please?

Many thanks!

vpelletier commented 7 years ago

Hello,

us is microseconds (the intent being "µs" but I remember kcachegrind crashing in the early pprofile days, could be non-ascii issue or some other inconsistencies in the first files I generated). hits is the number of times the line of code was executed. us/hit is the ratio between both (ie, average execution time of each line).

noisyboiler commented 7 years ago

Great stuff @vpelletier. Thanks