MCPcopy Index your code
hub / github.com/python/cpython / check_track

Method check_track

Lib/test/test_tracemalloc.py:1043–1053  ·  view source on GitHub ↗
(self, release_gil)

Source from the content-addressed store, hash-verified

1041 return sum(trace.size for trace in snapshot.traces)
1042
1043 def check_track(self, release_gil):
1044 nframe = 5
1045 tracemalloc.start(nframe)
1046
1047 size = tracemalloc.get_traced_memory()[0]
1048
1049 frames = self.track(release_gil, nframe)
1050 self.assertEqual(self.get_traceback(),
1051 tracemalloc.Traceback(frames))
1052
1053 self.assertEqual(self.get_traced_memory(), self.size)
1054
1055 def test_track(self):
1056 self.check_track(False)

Callers 2

test_trackMethod · 0.95

Calls 5

get_traced_memoryMethod · 0.95
trackMethod · 0.95
get_tracebackMethod · 0.95
startMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected