Skip to content

Commit c5b7759

Browse files
committed
Use EventSetup instead of event setup in comments
1 parent de0b4eb commit c5b7759

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PerfTools/AllocMonitor/scripts/edmModuleAllocJsonToCircles.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,27 @@ def processModuleTransition(moduleLabel, moduleType, moduleInfo, transitionType,
3737
}
3838
Any missing field defaults to 0.
3939
40-
Note: Entries with record names are excluded as they belong to event setup transition only.
40+
Note: Entries with record names are excluded as they belong to EventSetup transition only.
4141
"""
4242
moduleKey = UniqueKey(moduleLabel, moduleType, "")
4343
moduleTransition[moduleKey] = {"cpptype": moduleType, "allocs": []}
4444
for entry in moduleInfo:
4545
# Only process entries that match the transition type AND don't have record names
46-
# (entries with record names are event setup-only)
46+
# (entries with record names are EventSetup only)
4747
if (entry.get("transition", None) == transitionType and
4848
not ("record" in entry and "name" in entry["record"])):
4949
moduleTransition[moduleKey]["allocs"].append(entry.get("alloc", {}))
5050
moduleTransition[moduleKey]["nTransitions"] = len(moduleTransition[moduleKey]["allocs"])
5151

5252
def processESModuleTransition(moduleLabel, moduleType, moduleInfo, moduleTransition):
53-
"""Process event setup transitions - entries with record names
53+
"""Process EventSetup transitions - entries with record names
5454
5555
Creates unique entries for each module+type+record combination.
5656
"""
5757
# Group allocations by record name
5858
recordAllocations = {}
5959
for entry in moduleInfo:
60-
# event setup entries are those with a "record" field containing "name"
60+
# EventSetup entries are those with a "record" field containing "name"
6161
if "record" in entry and "name" in entry["record"]:
6262
recordName = entry["record"]["name"]
6363
if recordName not in recordAllocations:
@@ -233,7 +233,7 @@ def main(args):
233233
for transition in transitionTypes:
234234
moduleTransition = dict()
235235
if transition == EVENTSETUP_TRANSITION:
236-
# event setup transitions are handled differently - look for records with names
236+
# EventSetup transitions are handled differently - look for records with names
237237
for moduleLabel, moduleInfo in doc["modules"].items():
238238
processESModuleTransition(moduleLabel, moduleTypes[moduleLabel], moduleInfo, moduleTransition)
239239
else:

0 commit comments

Comments
 (0)