MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / add_func_stats

Function add_func_stats

tools/python-3.11.9-amd64/Lib/pstats.py:571–576  ·  view source on GitHub ↗

Add together all the stats for two profile entries.

(target, source)

Source from the content-addressed store, hash-verified

569#**************************************************************************
570
571def add_func_stats(target, source):
572 """Add together all the stats for two profile entries."""
573 cc, nc, tt, ct, callers = source
574 t_cc, t_nc, t_tt, t_ct, t_callers = target
575 return (cc+t_cc, nc+t_nc, tt+t_tt, ct+t_ct,
576 add_callers(t_callers, callers))
577
578def add_callers(target, source):
579 """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