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