Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PerfMonitor #2267

Open
nujhong opened this issue Nov 3, 2024 · 0 comments
Open

PerfMonitor #2267

nujhong opened this issue Nov 3, 2024 · 0 comments

Comments

@nujhong
Copy link

nujhong commented Nov 3, 2024

I'm looking for a way to measure FPS in my react native macOS app. Since it's disabled, would it be possible to measure both JS thread and UI thread FPS alternatively?

s.osx.exclude_files = "{RCTFPSGraph,RCTPerfMonitor,RCTPlatform}.*"

#if !TARGET_OS_OSX // [macOS]
id perfMonitorItemOpaque = [_moduleRegistry moduleForName:"PerfMonitor"];
SEL devMenuItem = @selector(devMenuItem);
if ([perfMonitorItemOpaque respondsToSelector:devMenuItem]) {
RCTDevMenuItem *perfMonitorItem = [perfMonitorItemOpaque devMenuItem];
[items addObject:perfMonitorItem];
}
#endif // [macOS]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant