SIGN IN SIGN UP

[executorch][devtools] Reset profiler state in ETDump tests

Pull Request resolved: https://github.com/pytorch/executorch/pull/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/)
S
Stephen Jia committed
a1d4d358169a666132a79ccc876440611a753df4
Parent: e43f7e5