Home
last modified time | relevance | path

Searched refs:total_nframe (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Lib/
H A Dtracemalloc.py187 def __init__(self, frames, total_nframe=None):
194 self._total_nframe = total_nframe
197 def total_nframe(self): member in Traceback
233 s += f" total_nframe={self.total_nframe}>"
391 domain, size, traceback, total_nframe = trace
411 domain, size, traceback, total_nframe = trace
488 domain, size, trace_traceback, total_nframe = trace
509 domain, size, trace_traceback, total_nframe = trace
/third_party/python/Modules/
H A D_tracemalloc.c84 uint16_t total_nframe; member
287 if (traceback1->total_nframe != traceback2->total_nframe) { in hashtable_compare_traceback()
385 x ^= traceback->total_nframe; in traceback_hash()
415 if (traceback->total_nframe < UINT16_MAX) { in traceback_get_frames()
416 traceback->total_nframe++; in traceback_get_frames()
435 traceback->total_nframe = 0; in traceback_new()
916 tracemalloc_empty_traceback.total_nframe = 1; in tracemalloc_init()
1173 obj = PyLong_FromUnsignedLong(trace->traceback->total_nframe); in trace_to_pyobject()
/third_party/python/Lib/test/
H A Dtest_tracemalloc.py94 self.assertEqual(get_repr((), 0), "<Traceback () total_nframe=0>")
104 f"<Traceback {exp_repr_frames} total_nframe=2>")
307 self.assertGreater(snapshot.traces[1].traceback.total_nframe, 10)
397 self.assertEqual(trace.traceback.total_nframe, 10)

Completed in 5 milliseconds