Lines Matching refs:traces

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