Lines Matching full:traces
129 /* domain (unsigned int) => traces (_Py_hashtable_t).
502 _Py_hashtable_t *traces = tracemalloc_get_traces_table(domain); in tracemalloc_remove_trace() local
503 if (!traces) { in tracemalloc_remove_trace()
507 trace_t *trace = _Py_hashtable_steal(traces, TO_PTR(ptr)); in tracemalloc_remove_trace()
531 _Py_hashtable_t *traces = tracemalloc_get_traces_table(domain); in tracemalloc_add_trace() local
532 if (traces == NULL) { in tracemalloc_add_trace()
533 traces = tracemalloc_create_traces_table(); in tracemalloc_add_trace()
534 if (traces == NULL) { in tracemalloc_add_trace()
538 if (_Py_hashtable_set(tracemalloc_domains, TO_PTR(domain), traces) < 0) { in tracemalloc_add_trace()
539 _Py_hashtable_destroy(traces); in tracemalloc_add_trace()
544 trace_t *trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_add_trace()
561 int res = _Py_hashtable_set(traces, TO_PTR(ptr), trace); in tracemalloc_add_trace()
1060 Clear traces of memory blocks allocated by Python.
1184 _Py_hashtable_t *traces; member
1193 tracemalloc_copy_trace(_Py_hashtable_t *traces, in tracemalloc_copy_trace() argument
1215 tracemalloc_copy_traces(_Py_hashtable_t *traces) in tracemalloc_copy_traces() argument
1222 int err = _Py_hashtable_foreach(traces, in tracemalloc_copy_traces()
1241 _Py_hashtable_t *traces = (_Py_hashtable_t *)value; in tracemalloc_copy_domain() local
1243 _Py_hashtable_t *traces2 = tracemalloc_copy_traces(traces); in tracemalloc_copy_domain()
1272 tracemalloc_get_traces_fill(_Py_hashtable_t *traces, in tracemalloc_get_traces_fill() argument
1304 _Py_hashtable_t *traces = (_Py_hashtable_t *)value; in tracemalloc_get_traces_domain() local
1307 return _Py_hashtable_foreach(traces, in tracemalloc_get_traces_domain()
1325 Get traces of all memory blocks allocated by Python.
1339 get_traces.traces = NULL; in _tracemalloc__get_traces_impl()
1358 // Copy all traces so tracemalloc_get_traces_fill() doesn't have to disable in _tracemalloc__get_traces_impl()
1362 get_traces.traces = tracemalloc_copy_traces(tracemalloc_traces); in _tracemalloc__get_traces_impl()
1365 if (get_traces.traces == NULL) { in _tracemalloc__get_traces_impl()
1377 // Convert traces to a list of tuples in _tracemalloc__get_traces_impl()
1379 int err = _Py_hashtable_foreach(get_traces.traces, in _tracemalloc__get_traces_impl()
1404 if (get_traces.traces != NULL) { in _tracemalloc__get_traces_impl()
1405 _Py_hashtable_destroy(get_traces.traces); in _tracemalloc__get_traces_impl()
1424 _Py_hashtable_t *traces = tracemalloc_get_traces_table(domain); in tracemalloc_get_traceback() local
1425 if (traces) { in tracemalloc_get_traceback()
1426 trace = _Py_hashtable_get(traces, TO_PTR(ptr)); in tracemalloc_get_traceback()
1548 Also clear traces of memory blocks allocated by Python.
1582 const _Py_hashtable_t *traces = value; in tracemalloc_get_tracemalloc_memory_cb() local
1584 *size += _Py_hashtable_size(traces); in tracemalloc_get_tracemalloc_memory_cb()