diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-29 17:49:05 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-29 17:49:05 +0200 |
| commit | 8a27203f9eaa136801947a6779b61d4e8813772b (patch) | |
| tree | 9739123262731cb4113d5ce84f2ef1f3ee6dc27f /src/chattyparser.py | |
| parent | 339e13537ad3c4717bb1245747b0e35964a4283b (diff) | |
| download | allocbench-8a27203f9eaa136801947a6779b61d4e8813772b.tar.gz allocbench-8a27203f9eaa136801947a6779b61d4e8813772b.zip | |
chattyparser: only track calls when we should
Diffstat (limited to 'src/chattyparser.py')
| -rwxr-xr-x | src/chattyparser.py | 3 |
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="") |
