Skip to content

Commit 3622553

Browse files
Gasoonjiafacebook-github-bot
authored andcommitted
fix number of operator error issue
Summary: This update tries to solve the number of operator issue raised in #7200. Differential Revision: D71178888
1 parent bb3b623 commit 3622553

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
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)