Confirmed users
85
edits
(update for bug 1121571) |
(Talos changes have landed) |
||
| Line 1: | Line 1: | ||
= How to Run Talos in Profiling Mode = | = How to Run Talos in Profiling Mode = | ||
{{warning| | {{warning|Major improvements to Talos profiling from bug 1121571 are about to be turned on on mozilla-central in bug 1123852. The Talos update change has landed on inbound, it'll be on central after the next merge. }} | ||
When profiling is enabled, we use the [https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler Gecko Profiler] to capture profiles that can then be displayed by Cleopatra. When running in profiling mode, captured profiles are copied to the upload directory. | When profiling is enabled, we use the [https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler Gecko Profiler] to capture profiles that can then be displayed by Cleopatra. When running in profiling mode, captured profiles are copied to the upload directory. | ||
| Line 7: | Line 7: | ||
== On [https://wiki.mozilla.org/Build:TryServer TryServer] == | == On [https://wiki.mozilla.org/Build:TryServer TryServer] == | ||
0. | 0. Make sure your Gecko repository contains [https://hg.mozilla.org/integration/mozilla-inbound/rev/babd56077826 inbound revision babd56077826] so you'll get the good stuff from [https://bugzilla.mozilla.org/show_bug.cgi?id=1121571 bug 1121571] before it's merged to mozilla-central (which should happen some time today): | ||
1. When you push to try, add "mozharness: --spsProfile" after "try: ..." to your commit message. Example: | 1. When you push to try, add "mozharness: --spsProfile" after "try: ..." to your commit message. Example: | ||
try: -b o -p linux,linux64,macosx64,win32,win64 -u none -t all[Ubuntu,10.6,10.8,Windows XP,Windows 7,Windows 8] mozharness: --spsProfile | try: -b o -p linux,linux64,macosx64,win32,win64 -u none -t all[Ubuntu,10.6,10.8,Windows XP,Windows 7,Windows 8] mozharness: --spsProfile | ||
2. When the tests finishes and you | 2. When the tests finishes and you select the run in treeherder, you'll see links to open the collect profiles in cleopatra. Click those links. | ||
== When running Talos locally == | == When running Talos locally == | ||
| Line 46: | Line 21: | ||
1. Set the upload folder (make sure it exists): | 1. Set the upload folder (make sure it exists): | ||
export MOZ_UPLOAD_DIR=/home/username/talos/upload | |||
2. Run talos with --spsProfile | 2. Run talos with --spsProfile | ||
talos -n -d --develop --executablePath ~/work/gecko-dev/obj-x86_64-unknown-linux-gnu/dist/bin/firefox --activeTests ts --spsProfile | |||
3. You will have one zip file per test in your upload folder. See [https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler#Upload_and_Share_the_Profile_to_Cleopatra this] page for info about how to open profiles in cleopatra. | 3. You will have one zip file per test in your upload folder. See [https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Profiling_with_the_Built-in_Profiler#Upload_and_Share_the_Profile_to_Cleopatra this] page for info about how to open profiles in cleopatra. | ||