-
Notifications
You must be signed in to change notification settings - Fork 61
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
Generating Timeline metrics with Chrome Trace #43
Comments
browser-perf does give continue to pick up timeline metrics from tracing logs - it was done in this commit - 6c01a7b Are you not able to see timeline metrics ? Can you run browser-perf with Note that some of the metrics may be missing because those events may not have occurred. |
Thanks for the quick reply! Here's the logs:
And these are the stats that are being returned:
It doesn't look like any of the timeline metrics are present :/. |
Actually, things like InvalidateLayout, all stats with _avg/_count, etc are from the timeline. How are you invoking browser-perf ? Are you invoking it from the command line ? Are there specific stats you are looking for ? |
Looks like these metrics do not show up because they do not occur in the timeline. Are you running this on a page that is long enough to scroll ? Can you send me a link to the site you are trying to record ? What action are you performing ? |
The page I'm trying to test is long enough to scroll, but it is pretty basic so I wondering the same thing. But running browser-perf with more complex sites using parallax doesn't seem to generate these events either. Eg. http://islreview.com/ These are the events that site produced:
I haven't tried any more complex actions, just scrolling. |
Thanks for the info - looks like I may need more help from you to figure out if this is an issue, and if paint events are infact emitted during the scroll. Note that by default, the measurements are done after the page has completely loaded. There could be a chance where since there is nothing to draw, all the scroll work is done by the GPU on that page. One way to be certain is to enable the line that writes perflog to a file and open it to see if there are Paint events - I did not see any on my computer (both Mac and Windows). To take that a step furthur, we could simply ignore browser-perf and directly open a browser, collect perf log and see what that says. Here is the reduced code that simply collects the timeline. |
Thanks for looking into it! I'll give your tests a try. I've tried quite a few sites with browser-perf and never seen the "Paint" event, so I'm curious if it's still in use. |
I tried this code: https://gist.github.com/axemclion/38265a963f5a863f7a53 The logs I got showed no sign of the "Paint" event. Instead there was references to things like:
I even got ride of the line where the performance data is flushed after fetching the site and was unable to see any "Paint" events. So if Chrome is now representing the paint process more granularly with these events, should perfjankie be looking at these events for paint metrics rather then the previous "Paint" event? |
@haroldtreen I think it makes sense. Maybe we should look at ChromeDevTools source and look at how they calculate the paint event now ? |
Good idea! I've just poked around briefly and found this: https://code.google.com/p/chromium/codesearch#chromium/src/out/Debug/gen/devtools/timeline_module.js&q=PaintImage&sq=package:chromium&type=cs&l=315 Although those all look like events from the in browser debug timeline and not the trace logs. It's interesting because if the timeline data was being shown in the performance logs, you'd expect to see similiar events when running the timeline in the browser vs. looking at performance logs. But many of the events in that file I don't believe I've seen show up in the performance log... |
I confirm that I also don't get anymore any metrics related to JavaScript (FunctionCall, EvelauteScript etc.) and rendering events (Paint, Layout etc.).
Output from https://gist.github.com/axemclion/38265a963f5a863f7a53 Formatted JSON - _perflog.json (10.5 MB) |
Yup, looks like the perflog format changed. I will try to see if I can spend some time this week to reconcile the results to a newer format. |
Did it change again? I cannot see any metrics related to js or rendering. |
@malled Looks like there was another change in the logs. |
@axemclion Could you provide some guidance on making changes necessary to get the metrics back? |
@brandonaaron - I think the best way to get started would be to write the metrics to a file by un-commenting this line. This would list all the raw info, and we should be able to pick up the specific metrics. |
@axemclion I see no
|
I was able to get |
Timeline had some really awesome metrics:
https://github.com/axemclion/browser-perf/blob/master/docs/TimelineMetrics.json
Since it's been deprecated, is there a way to generate some of these using the trace data? We're using perfjankie and a bunch of sections aren't getting any data without these stats.
We're using Chrome 45. Any thoughts?
The text was updated successfully, but these errors were encountered: