| 310 | return self |
| 311 | |
| 312 | def calc_callees(self): |
| 313 | if self.all_callees: |
| 314 | return |
| 315 | self.all_callees = all_callees = {} |
| 316 | for func, (cc, nc, tt, ct, callers) in self.stats.items(): |
| 317 | if not func in all_callees: |
| 318 | all_callees[func] = {} |
| 319 | for func2, caller in callers.items(): |
| 320 | if not func2 in all_callees: |
| 321 | all_callees[func2] = {} |
| 322 | all_callees[func2][func] = caller |
| 323 | return |
| 324 | |
| 325 | #****************************************************************** |
| 326 | # The following functions support actual printing of reports |