зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1299773: Added rendering of symbolicated stacks. r=gfritzsche
MozReview-Commit-ID: 5WCliZkuaY3 --HG-- extra : rebase_source : 9436e30ab54eeceb5057c3a4fd8cf16093357158
This commit is contained in:
Родитель
6d8c422776
Коммит
23ded3b879
|
@ -1127,9 +1127,17 @@ var CapturedStacks = {
|
|||
|
||||
let stacks = capturedStacks.stacks;
|
||||
let memoryMap = capturedStacks.memoryMap;
|
||||
let captures = capturedStacks.captures;
|
||||
|
||||
StackRenderer.renderStacks("captured-stacks", stacks, memoryMap, () => {});
|
||||
StackRenderer.renderStacks("captured-stacks", stacks, memoryMap,
|
||||
(index) => this.renderCaptureHeader(index, captures));
|
||||
},
|
||||
|
||||
renderCaptureHeader: function CaptureStacks_renderCaptureHeader(index, captures) {
|
||||
let key = captures[index][0];
|
||||
let cardinality = captures[index][2];
|
||||
StackRenderer.renderHeader("captured-stacks", [key, cardinality]);
|
||||
}
|
||||
};
|
||||
|
||||
var ThreadHangStats = {
|
||||
|
@ -1835,20 +1843,18 @@ function setupListeners() {
|
|||
}
|
||||
let capturedStacks = gPingData.payload.processes.parent.capturedStacks;
|
||||
let req = new SymbolicationRequest("captured-stacks",
|
||||
CapturedStacks.render,
|
||||
CapturedStacks.renderCaptureHeader,
|
||||
capturedStacks.memoryMap,
|
||||
capturedStacks.stacks,
|
||||
null);
|
||||
capturedStacks.captures);
|
||||
req.fetchSymbols();
|
||||
});
|
||||
|
||||
document.getElementById("captured-stacks-hide-symbols").addEventListener("click",
|
||||
function() {
|
||||
if (!gPingData) {
|
||||
return;
|
||||
if (gPingData) {
|
||||
CapturedStacks.render(gPingData.payload);
|
||||
}
|
||||
|
||||
CapturedStacks.render(gPingData);
|
||||
});
|
||||
|
||||
document.getElementById("late-writes-fetch-symbols").addEventListener("click",
|
||||
|
|
|
@ -157,11 +157,11 @@ Ping
|
|||
">
|
||||
|
||||
<!ENTITY aboutTelemetry.fetchSymbols "
|
||||
Fetch function names for hang stacks
|
||||
Fetch function names for stacks
|
||||
">
|
||||
|
||||
<!ENTITY aboutTelemetry.hideSymbols "
|
||||
Show raw data from hangs
|
||||
Show raw stack data
|
||||
">
|
||||
|
||||
<!ENTITY aboutTelemetry.filterText "
|
||||
|
|
|
@ -44,6 +44,11 @@ slowSqlStatement = Statement
|
|||
# - The %2$S will be replaced with the duration of the hang
|
||||
chrome-hangs-title = Hang Report #%1$S (%2$S seconds)
|
||||
|
||||
# Note to translators:
|
||||
# - The %1$S will be replaced with the string key for this stack.
|
||||
# - The %2$S will be replaced with the number of times this stack was captured.
|
||||
captured-stacks-title = %1$S (capture count: %2$S)
|
||||
|
||||
# Note to translators:
|
||||
# - The %1$S will be replaced with the number of the late write
|
||||
late-writes-title = Late Write #%1$S
|
||||
|
|
Загрузка…
Ссылка в новой задаче