mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1427484 - Fix about:telemetry "Show raw stack data" button in Browser Hangs section. r=chutten
The "Show raw stack data" button in the Browser Hangs section produced nothing but removing the "Browser Hangs" section from the about:telemetry navigation menu. I looked at the way the Late Writes section works and patched the Chrome Hangs render calls accordingly. MozReview-Commit-ID: Gq681oVrg90 --HG-- extra : rebase_source : 97ca47cd9d0997f69cff62b9201e514ab57d713d
This commit is contained in:
parent
5e38a0cf55
commit
dec5949822
@ -1060,16 +1060,15 @@ var ChromeHangs = {
|
|||||||
/**
|
/**
|
||||||
* Renders raw chrome hang data
|
* Renders raw chrome hang data
|
||||||
*/
|
*/
|
||||||
render: function ChromeHangs_render(payload) {
|
render: function ChromeHangs_render(chromeHangs) {
|
||||||
let hangs = payload.chromeHangs;
|
setHasData("chrome-hangs-section", !!chromeHangs);
|
||||||
setHasData("chrome-hangs-section", !!hangs);
|
if (!chromeHangs) {
|
||||||
if (!hangs) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let stacks = hangs.stacks;
|
let stacks = chromeHangs.stacks;
|
||||||
let memoryMap = hangs.memoryMap;
|
let memoryMap = chromeHangs.memoryMap;
|
||||||
let durations = hangs.durations;
|
let durations = chromeHangs.durations;
|
||||||
|
|
||||||
StackRenderer.renderStacks("chrome-hangs", stacks, memoryMap,
|
StackRenderer.renderStacks("chrome-hangs", stacks, memoryMap,
|
||||||
(index) => this.renderHangHeader(index, durations));
|
(index) => this.renderHangHeader(index, durations));
|
||||||
@ -2055,7 +2054,7 @@ function setupListeners() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChromeHangs.render(gPingData);
|
ChromeHangs.render(gPingData.payload.chromeHangs);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById("captured-stacks-fetch-symbols").addEventListener("click",
|
document.getElementById("captured-stacks-fetch-symbols").addEventListener("click",
|
||||||
|
Loading…
Reference in New Issue
Block a user