Bug 1034138 - c. Display thread hang native stack in about:telemetry if available; r=vladan

This commit is contained in:
Jim Chen
2014-07-24 22:33:51 -04:00
parent 46fd0de57e
commit d133c45ed3

View File

@@ -443,7 +443,8 @@ let ThreadHangStats = {
let hangDiv = Histogram.render(
div, hangName, hang.histogram, {exponential: true});
let stackDiv = document.createElement("div");
hang.stack.forEach((frame) => {
let stack = hang.nativeStack || hang.stack;
stack.forEach((frame) => {
stackDiv.appendChild(document.createTextNode(frame));
// Leave an extra <br> at the end of the stack listing
stackDiv.appendChild(document.createElement("br"));