Name
print_stats
Synopsis
s.print_stats(*restrictions)Outputs statistics about
s’s profile data, sorted
according to the latest call to
s
.sort_stats, and
subject to the given restrictions, if any, as covered in
print_callees. After a few summary lines (date and
time on which profile data was collected, number of function calls,
and sort criteria used), the output, absent restrictions, is one line
per function, with six fields per line, labeled in a header line. For
each function f,
print_stats outputs six fields:
Total number of calls to function
fTotal time spent in function
f, exclusive of other functions thatfcalledTotal time per call (i.e., field
2divided by field1)Cumulative time spent in function
f, and in all functions directly or indirectly called fromfCumulative time per call (i.e., field
4divided by field1)The name of function
f
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access