mirror of
https://github.com/python/cpython
synced 2026-09-29 07:45:29 +03:00
Issue #18874: tracemalloc: explain the purpose of get_traces.tracebacks in a comment
This commit is contained in:
parent
49c96fb7fa
commit
de2f132a5e
1 changed files with 2 additions and 0 deletions
|
|
@ -1041,6 +1041,8 @@ py_tracemalloc_get_traces(PyObject *self, PyObject *obj)
|
|||
if (!tracemalloc_config.tracing)
|
||||
return get_traces.list;
|
||||
|
||||
/* the traceback hash table is used temporarily to intern traceback tuple
|
||||
of (filename, lineno) tuples */
|
||||
get_traces.tracebacks = hashtable_new(sizeof(PyObject *),
|
||||
_Py_hashtable_hash_ptr,
|
||||
_Py_hashtable_compare_direct);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue