MCPcopy Index your code
hub / github.com/python/cpython / add_func_stats

Function add_func_stats

Lib/pstats.py:605–610  ·  view source on GitHub ↗

Add together all the stats for two profile entries.

(target, source)

Source from the content-addressed store, hash-verified

603#**************************************************************************
604
605def add_func_stats(target, source):
606 """Add together all the stats for two profile entries."""
607 cc, nc, tt, ct, callers = source
608 t_cc, t_nc, t_tt, t_ct, t_callers = target
609 return (cc+t_cc, nc+t_nc, tt+t_tt, ct+t_ct,
610 add_callers(t_callers, callers))
611
612def add_callers(target, source):
613 """Combine two caller lists in a single list."""

Callers 2

addMethod · 0.85
strip_dirsMethod · 0.85

Calls 1

add_callersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…