Monitoring Internal State
The library internally keeps track of all the profiled screens via a state machine. Although you shouldn't need to do this in production, it might be useful to get a dump of these state machine transitions for debugging purposes at development time. You can do so via:
tsx
tsx
Note that useProfilerState hook — just like all other profiler TypeScript APIs — must be rendered as a child of the PerformanceProfiler component.