Bug 1371452 - Provide instructions for POSTing the profile from test_render_perf.html to perf-html;r=nchevobbe
MozReview-Commit-ID: HYdmANqxIg5
--- 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>