Add together all the stats for two profile entries.
(target, source)
| 603 | #************************************************************************** |
| 604 | |
| 605 | def 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 | |
| 612 | def add_callers(target, source): |
| 613 | """Combine two caller lists in a single list.""" |
no test coverage detected
searching dependent graphs…