diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-25 23:26:23 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-25 23:26:23 (GMT) |
commit | de2f132a5e052b8621be4b5a482a27a0b999fc35 (patch) | |
tree | 4e9ac21f124c4d21a533bf1b562291fb29a910c8 /Modules/_tracemalloc.c | |
parent | 49c96fb7fadd0bd127f1f5d41c3b757e53093c03 (diff) | |
download | cpython-de2f132a5e052b8621be4b5a482a27a0b999fc35.zip cpython-de2f132a5e052b8621be4b5a482a27a0b999fc35.tar.gz cpython-de2f132a5e052b8621be4b5a482a27a0b999fc35.tar.bz2 |
Issue #18874: tracemalloc: explain the purpose of get_traces.tracebacks in a comment
Diffstat (limited to 'Modules/_tracemalloc.c')
-rw-r--r-- | Modules/_tracemalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 4cbbd9e..7e9f698 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -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); |