aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chattyparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chattyparser.py b/src/chattyparser.py
index 1f0242c..7b2de40 100755
--- a/src/chattyparser.py
+++ b/src/chattyparser.py
@@ -244,7 +244,8 @@ def parse(path="chattymalloc.txt",
try:
trace = Trace(entry)
- context["calls"][trace.func] += 1
+ if track_calls:
+ context["calls"][trace.func] += 1
msg = record_allocation(trace, context)
if msg:
print(f"entry {i}: {msg}", file=sys.stderr, end="")