Add together all the stats for two profile entries.
(target, source)
| 569 | #************************************************************************** |
| 570 | |
| 571 | def 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 | |
| 578 | def add_callers(target, source): |
| 579 | """Combine two caller lists in a single list.""" |
no test coverage detected