From 49cbfe5cbf1e267da7a67039fb4ce0fa4fb094fe Mon Sep 17 00:00:00 2001 From: AdityaGupta716 Date: Thu, 26 Feb 2026 03:25:49 +0530 Subject: [PATCH] Fix: translate 'total' to '_GLOBAL' for --event argument (#18) --- preciceprofiling/analyze.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/preciceprofiling/analyze.py b/preciceprofiling/analyze.py index 8dd165b..9b916a6 100644 --- a/preciceprofiling/analyze.py +++ b/preciceprofiling/analyze.py @@ -117,6 +117,10 @@ def runAnalyze(ns): def analyzeCommand(profilingfile, participant, event, outfile=None, unit="us"): + # Translate display name "total" back to internal name "_GLOBAL" + if event == "total": + event = "_GLOBAL" + run = Run(profilingfile) participants = run.participants()