Lines Matching refs:nframe
21 def get_frames(nframe, lineno_delta): argument
24 for index in range(nframe):
35 nframe = tracemalloc.get_traceback_limit()
37 frames = get_frames(nframe, 1)
39 return data, tracemalloc.Traceback(frames, min(len(frames), nframe))
126 nframe = tracemalloc.get_traceback_limit()
127 frames = get_frames(nframe, -3)
128 obj_traceback = tracemalloc.Traceback(frames, min(len(frames), nframe))
903 def check_env_var_invalid(self, nframe): argument
907 PYTHONTRACEMALLOC=str(nframe))
917 for nframe in INVALID_NFRAME:
918 with self.subTest(nframe=nframe):
919 self.check_env_var_invalid(nframe)
922 for xoptions, nframe in (
927 with self.subTest(xoptions=xoptions, nframe=nframe):
931 self.assertEqual(stdout, str(nframe).encode('ascii'))
933 def check_sys_xoptions_invalid(self, nframe): argument
934 args = ('-X', 'tracemalloc=%s' % nframe, '-c', 'pass')
945 for nframe in INVALID_NFRAME:
946 with self.subTest(nframe=nframe):
947 self.check_sys_xoptions_invalid(nframe)
983 def track(self, release_gil=False, nframe=1): argument
984 frames = get_frames(nframe, 1)
1000 nframe = 5
1001 tracemalloc.start(nframe)
1005 frames = self.track(release_gil, nframe)
1020 nframe = 5
1021 tracemalloc.start(nframe)
1028 frames = self.track(nframe=nframe)