Lines Matching full:get_traces
1305 get_traces_t *get_traces = user_data;
1321 tracemalloc_obj = trace_to_pyobject(domain, &trace, get_traces->tracebacks);
1325 res = PyList_Append(get_traces->list, tracemalloc_obj);
1358 get_traces_t get_traces;
1361 get_traces.traces = NULL;
1362 get_traces.tracebacks = NULL;
1363 get_traces.list = PyList_New(0);
1364 if (get_traces.list == NULL)
1368 return get_traces.list;
1372 get_traces.tracebacks = hashtable_new(sizeof(traceback_t *),
1376 if (get_traces.tracebacks == NULL) {
1382 get_traces.traces = _Py_hashtable_copy(tracemalloc_traces);
1385 if (get_traces.traces == NULL) {
1391 err = _Py_hashtable_foreach(get_traces.traces,
1392 tracemalloc_get_traces_fill, &get_traces);
1400 Py_CLEAR(get_traces.list);
1403 if (get_traces.tracebacks != NULL) {
1404 _Py_hashtable_foreach(get_traces.tracebacks,
1406 _Py_hashtable_destroy(get_traces.tracebacks);
1408 if (get_traces.traces != NULL) {
1409 _Py_hashtable_destroy(get_traces.traces);
1412 return get_traces.list;