| 101 | |
| 102 | |
| 103 | class TracedClass(object): |
| 104 | def __init__(self, x): |
| 105 | self.a = x |
| 106 | |
| 107 | def inst_method_linear(self, y): |
| 108 | return self.a + y |
| 109 | |
| 110 | def inst_method_calling(self, x): |
| 111 | c = self.inst_method_linear(x) |
| 112 | return c + traced_func_linear(x, c) |
| 113 | |
| 114 | @classmethod |
| 115 | def class_method_linear(cls, y): |
| 116 | return y * 2 |
| 117 | |
| 118 | @staticmethod |
| 119 | def static_method_linear(y): |
| 120 | return y * 2 |
| 121 | |
| 122 | |
| 123 | #------------------------------ Test cases -----------------------------------# |
no outgoing calls
searching dependent graphs…