]> granicus.if.org Git - python/commitdiff
Issue #18874: tracemalloc: Comment the trace_t structure
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 26 Nov 2013 00:06:02 +0000 (01:06 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 26 Nov 2013 00:06:02 +0000 (01:06 +0100)
Modules/_tracemalloc.c

index 7e9f69845d0621baffb8ea26985f771d79d77bde..5f45f3d20f4a6a047e97d8d4a73cc584e7e90ee4 100644 (file)
@@ -93,8 +93,12 @@ typedef struct {
 static PyObject *unknown_filename = NULL;
 static traceback_t tracemalloc_empty_traceback;
 
+/* Trace of a memory block */
 typedef struct {
+    /* Size of the memory block in bytes */
     size_t size;
+
+    /* Traceback where the memory block was allocated */
     traceback_t *traceback;
 } trace_t;