Bug 1371452 - Provide instructions for POSTing the profile from test_render_perf.html to perf-html;r=nchevobbe
authorBrian Grinstead <bgrinstead@mozilla.com>
Thu, 08 Jun 2017 15:00:34 -0700
changeset 413912 daa0394d99737310d2595b63db235ba0d4498ca9
parent 413911 52b2148d954c3c012901e42529035e27edc88cc6
child 413913 3118b9ee9db8f10d53b9352efe3796b917b8930e
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs1371452
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1371452 - Provide instructions for POSTing the profile from test_render_perf.html to perf-html;r=nchevobbe MozReview-Commit-ID: HYdmANqxIg5
devtools/client/webconsole/new-console-output/test/chrome/test_render_perf.html
--- a/devtools/client/webconsole/new-console-output/test/chrome/test_render_perf.html
+++ b/devtools/client/webconsole/new-console-output/test/chrome/test_render_perf.html
@@ -175,17 +175,28 @@ window.onload = async function () {
   await testBulkLogging(wrapper);
 
   Services.profiler.AddMarker("Filtering Logging");
   await testFiltering(wrapper);
 
   ok(true, "Tests finished");
 
   let file = FileUtils.getFile("TmpD", [`test_render_perf_${Date.now()}.json`]);
-  info("PROFILE:\n\n\n\n\nSaving profile " + file.path + "\n\n\n\n\n");
   Services.profiler.dumpProfileToFile(file.path);
   Services.profiler.StopProfiler();
 
+  info(`
+
+SAVING PROFILE: ${file.path}
+
+To upload the profile, run the following commands:
+
+  gzip ${file.path}
+  curl 'https://profile-store.appspot.com/compressed-store' --compressed --data-binary @${file.path}.gz | awk '{print "Hosted at: https://perf-html.io/public/"$1}'
+
+
+`);
+
   SimpleTest.finish();
 };
 </script>
 </body>
 </html>