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

This commit is contained in:
Jim Chen 2014-07-29 10:33:12 -04:00
parent 7113d12dc4
commit 6dfdc5a900

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"));