Bug 1228435 - Show thread hang stats from selected payload. r=vladan
authorChris H-C <chutten@mozilla.com>
Fri, 27 Nov 2015 06:03:00 +0100
changeset 309201 3f9f28b75272f42902fded3239820f4f9a202c8c
parent 309200 69ac60b9dec25d993075037eb1efd5e740cbf127
child 309202 10f46d149d72c1a6edc3b8e8a8fc7987fec2a954
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvladan
bugs1228435
milestone45.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 1228435 - Show thread hang stats from selected payload. r=vladan
toolkit/content/aboutTelemetry.js
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -926,21 +926,21 @@ var ChromeHangs = {
   }
 };
 
 var ThreadHangStats = {
 
   /**
    * Renders raw thread hang stats data
    */
-  render: function(aPing) {
+  render: function(aPayload) {
     let div = document.getElementById("thread-hang-stats");
     removeAllChildNodes(div);
 
-    let stats = aPing.payload.threadHangStats;
+    let stats = aPayload.threadHangStats;
     setHasData("thread-hang-stats-section", stats && (stats.length > 0));
     if (!stats) {
       return;
     }
 
     stats.forEach((thread) => {
       div.appendChild(this.renderThread(thread));
     });
@@ -1603,32 +1603,32 @@ function displayPingData(ping, updatePay
   TelLog.render(ping);
 
   // Show slow SQL stats
   SlowSQL.render(ping);
 
   // Show chrome hang stacks
   ChromeHangs.render(ping);
 
-  // Show thread hang stats
-  ThreadHangStats.render(ping);
-
   // Render Addon details.
   AddonDetails.render(ping);
 
   // Select payload to render
   let payloadSelect = document.getElementById("choose-payload");
   let payloadOption = payloadSelect.selectedOptions.item(0);
   let payloadIndex = payloadOption.getAttribute("value");
 
   let payload = ping.payload;
   if (payloadIndex > 0) {
     payload = ping.payload.childPayloads[payloadIndex - 1];
   }
 
+  // Show thread hang stats
+  ThreadHangStats.render(payload);
+
   // Show simple measurements
   let simpleMeasurements = sortStartupMilestones(payload.simpleMeasurements);
   let hasData = Object.keys(simpleMeasurements).length > 0;
   setHasData("simple-measurements-section", hasData);
   let simpleSection = document.getElementById("simple-measurements");
   removeAllChildNodes(simpleSection);
 
   if (hasData) {