Closed Bug 1372361 Opened 7 years ago Closed 7 years ago

Make ts_paint test profiling dump profiles from the parent process using TalosContentProfiler.js

Categories

(Testing :: Talos, enhancement)

enhancement
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file, 1 obsolete file)

ts_paint measures how long it takes to paint the first window. Often times, the most important information about what the bottlenecks are preventing that first paint can be found using the Gecko Profiler.

ts_paint tries to use the Talos profiling scripts, but it uses an older one from the pre-e10s days. When it attempts to dump the profile, it only ends up dumping the profile for the content process, which is mostly useless, since what's usually blocking the first paint of the window is in the parent process.
Summary: Make ts_paint test profiling dump profiles from the parent process using TalosContentPowers.js → Make ts_paint test profiling dump profiles from the parent process using TalosPowersContent.js
Summary: Make ts_paint test profiling dump profiles from the parent process using TalosPowersContent.js → Make ts_paint test profiling dump profiles from the parent process using TalosContentProfiler.js
Comment on attachment 8876888 [details]
Bug 1372361 - Use TalosContentProfiler.js for ts_paint so that --geckoProfile runs return useful results.

https://reviewboard.mozilla.org/r/148214/#review152578

thanks for the patch, I assume this won't change any numbers.
Attachment #8876888 - Flags: review?(jmaher) → review+
(In reply to Joel Maher ( :jmaher) from comment #2)
> Comment on attachment 8876888 [details]
> Bug 1372361 - Use TalosContentProfiler.js for ts_paint so that
> --geckoProfile runs return useful results.
> 
> https://reviewboard.mozilla.org/r/148214/#review152578
> 
> thanks for the patch, I assume this won't change any numbers.

It shouldn't, no - all changes should occur after the thing that's being measured.
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a72582716f3f
Use TalosContentProfiler.js for ts_paint so that --geckoProfile runs return useful results. r=jmaher
https://hg.mozilla.org/mozilla-central/rev/a72582716f3f
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
This causes problems when I run it locally, since the MozAfterPaint listener is now removed only after a number of await calls, and winds up processing multiple events rather than just one.
(In reply to Kris Maglione [:kmag] from comment #6)
> This causes problems when I run it locally, since the MozAfterPaint listener
> is now removed only after a number of await calls, and winds up processing
> multiple events rather than just one.

We don't actually use the MozAfterPaint event in order to get a time though - we're using nsIAppStartup.getStartupInfo(). Or am I missing something?
Flags: needinfo?(kmaglione+bmo)
(In reply to Mike Conley (:mconley) from comment #7)
> We don't actually use the MozAfterPaint event in order to get a time though
> - we're using nsIAppStartup.getStartupInfo(). Or am I missing something?

I'm talking about here:

http://searchfox.org/mozilla-central/rev/714606a8145636d93b116943d3a65a6a49d2acf8/testing/talos/talos/startup_test/tspaint_test.html#15-20

where we use MozAfterPaint listeners to trigger the report output, and wind up outputting it twice.
Flags: needinfo?(kmaglione+bmo)
Flags: needinfo?(mconley)
Depends on: 1375219
Comment on attachment 8880098 [details]
Bug 1372361: Remove MozAfterPaint listener before calling await.

Sorry, copy/paste fail.
Attachment #8880098 - Attachment is obsolete: true
Attachment #8880098 - Flags: review?(mconley)
Thanks for fixing bug 1375219!
Flags: needinfo?(mconley)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: