Bug 1371452 - Provide instructions for POSTing the profile from test_render_perf.html to perf-html;r=nchevobbe draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Thu, 08 Jun 2017 15:00:34 -0700
changeset 591238 6735ed2499e2b05731aaf1b6d04f42f0a4bc70be
parent 590997 6491fb29e7fcc9e02cc179ae2856f426a3552385
child 632480 26927c1c563f09ae6d7bd7f2b2d635e1bbe91773
push id63015
push userbgrinstead@mozilla.com
push dateThu, 08 Jun 2017 22:01:22 +0000
reviewersnchevobbe
bugs1371452
milestone55.0a1
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>