Home
last modified time | relevance | path

Searched refs:nframe (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_tracemalloc.py20 def get_frames(nframe, lineno_delta): argument
23 for index in range(nframe):
34 nframe = tracemalloc.get_traceback_limit()
36 frames = get_frames(nframe, 1)
850 def check_env_var_invalid(self, nframe): argument
854 PYTHONTRACEMALLOC=str(nframe))
864 for nframe in (-1, 0, 2**30):
865 with self.subTest(nframe=nframe):
866 self.check_env_var_invalid(nframe)
869 for xoptions, nframe in (
[all …]
/external/python/cpython3/Modules/
D_tracemalloc.c101 int nframe; member
328 if (traceback1->nframe != traceback2->nframe) in hashtable_compare_traceback()
331 for (i=0; i < traceback1->nframe; i++) { in hashtable_compare_traceback()
424 int len = traceback->nframe; in traceback_hash()
459 tracemalloc_get_frame(pyframe, &traceback->frames[traceback->nframe]); in traceback_get_frames()
460 assert(traceback->frames[traceback->nframe].filename != NULL); in traceback_get_frames()
461 traceback->nframe++; in traceback_get_frames()
462 if (traceback->nframe == tracemalloc_config.max_nframe) in traceback_get_frames()
478 traceback->nframe = 0; in traceback_new()
480 if (traceback->nframe == 0) in traceback_new()
[all …]
Dmain.c1743 int nframe; in config_init_tracemalloc() local
1748 if (!pymain_str_to_int(env, &nframe)) { in config_init_tracemalloc()
1749 valid = (nframe >= 1); in config_init_tracemalloc()
1758 config->tracemalloc = nframe; in config_init_tracemalloc()
1765 if (!pymain_wstr_to_int(sep + 1, &nframe)) { in config_init_tracemalloc()
1766 valid = (nframe >= 1); in config_init_tracemalloc()
1778 nframe = 1; in config_init_tracemalloc()
1780 config->tracemalloc = nframe; in config_init_tracemalloc()
/external/python/cpython3/Modules/clinic/
D_tracemalloc.c.h90 _tracemalloc_start_impl(PyObject *module, int nframe);
96 int nframe = 1; in _tracemalloc_start() local
99 &nframe)) { in _tracemalloc_start()
102 return_value = _tracemalloc_start_impl(module, nframe); in _tracemalloc_start()
/external/python/cpython3/Lib/
Dsndhdr.py121 nframe = data_size / frame_size
123 nframe = -1
124 return filetype, rate, nchannels, nframe, sample_bits
/external/python/cpython3/Doc/library/
Dtracemalloc.rst309 .. function:: start(nframe: int=1)
312 allocators. Collected tracebacks of traces will be limited to *nframe*
314 frame: the limit is ``1``. *nframe* must be greater or equal to ``1``.
354 the *nframe* parameter of the :func:`start` function to store more frames.
/external/one-true-awk/
Drun.c221 int nframe = 0; /* number of frames allocated */ variable
239 fp = frame = (struct Frame *) calloc(nframe += 100, sizeof(struct Frame)); in call()
271 if (fp >= frame + nframe) { in call()
274 realloc((char *) frame, (nframe += 100) * sizeof(struct Frame)); in call()