Repository navigation
Commit a1d4d35
committed
[executorch][devtools] Reset profiler state in ETDump tests
Pull Request resolved: pytorch#21410
Reinitialize the global profiler state before each `ETDumpGenTest` while initializing the runtime once per suite. This prevents profile blocks from leaking across XCTest cases, exhausting the fixed block pool, and causing assertion failures or process crashes. This fixes nine TestInfra signals. This commit was authored with Claude.
ghstack-source-id: 407467887
@exported-using-ghexport
Differential Revision: [D113810097](https://our.internmc.facebook.com/intern/diff/D113810097/)1 parent e43f7e5 commit a1d4d35
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
| |||
0 commit comments