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

[Metrics] How to fetch the download time for javascript? #1825

Closed
dolphinux opened this issue Jul 1, 2015 · 2 comments
Closed

[Metrics] How to fetch the download time for javascript? #1825

dolphinux opened this issue Jul 1, 2015 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@dolphinux
Copy link

#1173

I want to get the consume time for javascript download time,but I don't know how to got it?
@nicklockwood

@brentvatne brentvatne changed the title How to fetch the download time for javascript? [Metrics] How to fetch the download time for javascript? Jul 4, 2015
@brentvatne
Copy link
Collaborator

@dolphinux - check out

RCTProfileBeginEvent();
RCTPerformanceLoggerStart(RCTPLScriptDownload);
RCTJavaScriptLoader *loader = [[RCTJavaScriptLoader alloc] initWithBridge:self];
[loader loadBundleAtURL:bundleURL onComplete:^(NSError *error, NSString *script) {
RCTPerformanceLoggerEnd(RCTPLScriptDownload);
RCTProfileEndEvent(@"JavaScript dowload", @"init,download", @[]);
- notice that this is passed in to both RCTPerformanceLogger and RCTProfile - does that help?

@brentvatne
Copy link
Collaborator

Have a look at the Inspect Element tool, specifically in the Perf tab, that will have the data for you!

@facebook facebook locked as resolved and limited conversation to collaborators Jul 22, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants