Lines Matching full:traces
135 /* domain (unsigned int) => traces (_Py_hashtable_t).
510 _Py_hashtable_t *traces = tracemalloc_get_traces_table(domain); in tracemalloc_remove_trace() local
511 if (!traces) { in tracemalloc_remove_trace()
515 trace_t *trace = _Py_hashtable_steal(traces, TO_PTR(ptr)); in tracemalloc_remove_trace()
539 _Py_hashtable_t *traces = tracemalloc_get_traces_table(domain); in tracemalloc_add_trace() local
540 if (traces == NULL) { in tracemalloc_add_trace()
541 traces = tracemalloc_create_traces_table(); in tracemalloc_add_trace()
542 if (traces == NULL) { in tracemalloc_add_trace()
546 if (_Py_hashtable_set(tracemalloc_domains, TO_PTR(domain), traces) < 0) { in tracemalloc_add_trace()
547 _Py_hashtable_destroy(traces); in tracemalloc_add_trace()
552 trace_t *trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_add_trace()
569 int res = _Py_hashtable_set(traces, TO_PTR(ptr), trace); in tracemalloc_add_trace()
1061 Clear traces of memory blocks allocated by Python.
1185 _Py_hashtable_t *traces; member
1194 tracemalloc_copy_trace(_Py_hashtable_t *traces, in tracemalloc_copy_trace() argument
1216 tracemalloc_copy_traces(_Py_hashtable_t *traces) in tracemalloc_copy_traces() argument
1223 int err = _Py_hashtable_foreach(traces, in tracemalloc_copy_traces()
1242 _Py_hashtable_t *traces = (_Py_hashtable_t *)value; in tracemalloc_copy_domain() local
1244 _Py_hashtable_t *traces2 = tracemalloc_copy_traces(traces); in tracemalloc_copy_domain()
1276 tracemalloc_get_traces_fill(_Py_hashtable_t *traces, in tracemalloc_get_traces_fill() argument
1308 _Py_hashtable_t *traces = (_Py_hashtable_t *)value; in tracemalloc_get_traces_domain() local
1311 return _Py_hashtable_foreach(traces, in tracemalloc_get_traces_domain()
1329 Get traces of all memory blocks allocated by Python.
1343 get_traces.traces = NULL; in _tracemalloc__get_traces_impl()
1362 // Copy all traces so tracemalloc_get_traces_fill() doesn't have to disable in _tracemalloc__get_traces_impl()
1366 get_traces.traces = tracemalloc_copy_traces(tracemalloc_traces); in _tracemalloc__get_traces_impl()
1369 if (get_traces.traces == NULL) { in _tracemalloc__get_traces_impl()
1381 // Convert traces to a list of tuples in _tracemalloc__get_traces_impl()
1383 int err = _Py_hashtable_foreach(get_traces.traces, in _tracemalloc__get_traces_impl()
1408 if (get_traces.traces != NULL) { in _tracemalloc__get_traces_impl()
1409 _Py_hashtable_destroy(get_traces.traces); in _tracemalloc__get_traces_impl()
1428 _Py_hashtable_t *traces = tracemalloc_get_traces_table(domain); in tracemalloc_get_traceback() local
1429 if (traces) { in tracemalloc_get_traceback()
1430 trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_get_traceback()
1552 Also clear traces of memory blocks allocated by Python.
1586 const _Py_hashtable_t *traces = value; in tracemalloc_get_tracemalloc_memory_cb() local
1588 *size += _Py_hashtable_size(traces); in tracemalloc_get_tracemalloc_memory_cb()