Skip to content

Commit ea43453

Browse files
authored
fix number of operator error issue
Differential Revision: D71178888 Pull Request resolved: #9263
1 parent 4ecfc62 commit ea43453

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devtools/inspector/_inspector.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,10 @@ def find_total_for_module(self, module_name: str) -> float:
12241224
total = 0.0
12251225
for block in self.event_blocks:
12261226
for event in block.events:
1227+
# Skip OPERATOR_CALL events to avoid double-counting and exclude framework tax
1228+
if event.event_name == "OPERATOR_CALL":
1229+
continue
1230+
12271231
module_hierarchy = event.module_hierarchy.values()
12281232
for hierarchy in module_hierarchy:
12291233
if not hierarchy:

0 commit comments

Comments
 (0)