cprofilev icon indicating copy to clipboard operation
cprofilev copied to clipboard

Added functionality to show stats for function defined in specific location

Open ericremoreynolds opened this issue 10 years ago • 1 comments

Hi,

With this PR I have added a query argument 'func_loc' which allows you to filter by the filename and line number where a function is defined, in addition to the function name. Also, in the main stats (print_stats) the filename:lineno part gets 'linkified' appropriately.

It's probably easier if you just check it out yourself as it's pretty self-explanatory once you see what it does.

Let me know what you think and thanks for this useful tool which makes cProfile a whole load easier to use.

Regards,

Eric

ericremoreynolds avatar Aug 10 '15 12:08 ericremoreynolds

#22 should address this as well, I think.

deanmalmgren avatar Dec 14 '15 15:12 deanmalmgren