From 8a27203f9eaa136801947a6779b61d4e8813772b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 29 Apr 2020 17:49:05 +0200 Subject: chattyparser: only track calls when we should --- src/chattyparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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="") -- cgit v1.2.3