Skip to content

Commit

Permalink
Add scoping support to gathering events (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis authored Oct 25, 2024
1 parent afb7406 commit 96b8431
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tools/mapping-tester/gatherstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,19 @@ def statsFromTimings(dir):
stats["globalTime"] = row[-1]
if row[0] == "initialize":
stats["initializeTime"] = row[-1]
if row[0].startswith("initialize/map") and row[0].endswith(
"computeMapping.FromA-MeshToB-Mesh"
parts = row[0].split("/")
event = parts[-1]
if (
parts[0] == "initialize"
and event.startswith("map")
and event.endswith("computeMapping.FromA-MeshToB-Mesh")
):
computeMappingName = row[0]
stats["computeMappingTime"] = row[-1]
if row[0].startswith("advance/map") and row[0].endswith(
"mapData.FromA-MeshToB-Mesh"
if (
parts[0] == "advance"
and event.startswith("map")
and event.endswith("mapData.FromA-MeshToB-Mesh")
):
mapDataName = row[0]
stats["mapDataTime"] = row[-1]
except BaseException:
pass
Expand Down

0 comments on commit 96b8431

Please sign in to comment.