(self, function)
| 1889 | self.entries = {} |
| 1890 | |
| 1891 | def add_entry(self, function): |
| 1892 | try: |
| 1893 | entry = self.entries[function.id] |
| 1894 | except KeyError: |
| 1895 | self.entries[function.id] = (function, { }) |
| 1896 | else: |
| 1897 | function_total, callees_total = entry |
| 1898 | function_total.samples += function.samples |
| 1899 | |
| 1900 | def add_callee(self, function, callee): |
| 1901 | func, callees = self.entries[function.id] |