Lines Matching refs:traces
133 def find_trace(self, traces, traceback): argument
134 for trace in traces:
145 traces = tracemalloc._get_traces()
146 trace = self.find_trace(traces, obj_traceback)
172 traces = tracemalloc._get_traces()
177 trace1 = self.find_trace(traces, obj1_traceback)
178 trace2 = self.find_trace(traces, obj2_traceback)
247 self.assertEqual(snapshot2.traces, snapshot.traces)
315 self.assertEqual(len(snapshot.traces), 1)
316 trace = snapshot.traces[0]
328 original_traces = list(snapshot.traces._traces)
332 self.assertEqual(snapshot3.traces._traces, [
341 self.assertEqual(snapshot.traces._traces, original_traces)
345 self.assertEqual(snapshot4.traces._traces, [
355 self.assertIsNot(snapshot5.traces, snapshot.traces)
356 self.assertEqual(snapshot5.traces, snapshot.traces)
365 original_traces = list(snapshot.traces._traces)
369 self.assertEqual(snapshot3.traces._traces, [
379 self.assertEqual(snapshot3.traces._traces, [
394 self.assertEqual(snapshot3.traces._traces, [
404 self.assertEqual(snapshot3.traces._traces, [
542 trace = snapshot.traces[0]
565 self.assertEqual(snapshot.traces[:2],
566 (snapshot.traces[0], snapshot.traces[1]))
568 traceback = snapshot.traces[0].traceback
578 tb = snapshot.traces[0].traceback
944 return sum(trace.size for trace in snapshot.traces)