Confirmed users
85
edits
(update for bug 1121571) |
|||
Line 1: | Line 1: | ||
= How to Run Talos in Profiling Mode = | = How to Run Talos in Profiling Mode = | ||
{{warning| | {{warning|We're currently working on some major improvements to Talos profiling in bug 1121571. You'll want to use the in-progress patches from there (or just clone http://hg.mozilla.org/users/mstange_themasta.com/talos-sps-profiling at revision 1a737105cc43), otherwise the results won't be very useful. This work will hopefully land within the next few days. }} | ||
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. | ||
== | == On [https://wiki.mozilla.org/Build:TryServer TryServer] == | ||
0. Apply this patch to your Gecko repository in order to use the good stuff from [https://bugzilla.mozilla.org/show_bug.cgi?id=1121571 bug 1121571] before it lands (which should happen on Jan 22 2015 at the latest): | |||
--- a/testing/talos/talos.json | |||
+++ b/testing/talos/talos.json | |||
@@ -1,16 +1,16 @@ | |||
{ | |||
"talos.zip": { | |||
"url": "http://talos-bundles.pvt.build.mozilla.org/zips/talos.f3179facd945.zip", | |||
"path": "" | |||
}, | |||
"global": { | |||
- "talos_repo": "https://hg.mozilla.org/build/talos", | |||
- "talos_revision": "ebc4327b8cb8" | |||
+ "talos_repo": "http://hg.mozilla.org/users/mstange_themasta.com/talos-sps-profiling", | |||
+ "talos_revision": "1a737105cc43" | |||
}, | |||
"extra_options": { | |||
"android": [ "--apkPath=%(apk_path)s" ] | |||
}, | |||
"suites": { | |||
"chromez": { | |||
"tests": ["tresize", "tcanvasmark"] | |||
}, | |||
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 | |||
2. When the tests finishes and you view the log, you will see something like | |||
<pre>TinderboxPrint: Uploaded profile_tcanvasmark.sps.zip to http://mozilla-releng-blobs.s3.amazonaws.com/blobs/...</pre> | |||
3. Download the zip file from this URL, extract it and 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. | |||
== When running Talos locally == | |||
You need to set an upload directory and use the --spsProfile command line parameter with Talos to capture profiles and have them copied into the upload folder. | You need to set an upload directory and use the --spsProfile command line parameter with Talos to capture profiles and have them copied into the upload folder. | ||
Line 18: | Line 53: | ||
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. | ||
= FAQ = | = FAQ = |