зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1545582 - Hook JS allocations into the profiler popup; r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D34545 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dd7d3f3708
Коммит
6dc22ec6a1
|
@ -226,6 +226,7 @@ function intializeState() {
|
|||
tasktracer: false,
|
||||
trackopts: false,
|
||||
jstracer: false,
|
||||
jsallocations: false,
|
||||
};
|
||||
|
||||
if (AppConstants.platform === "android") {
|
||||
|
|
|
@ -169,6 +169,10 @@
|
|||
id="perf-settings-feature-checkbox-jstracer" type="checkbox" value="jstracer" />
|
||||
<div class="perf-settings-feature-name">JSTracer</div>
|
||||
<div class="perf-settings-feature-title">Trace JS engine (Experimental, requires custom build.)</div>
|
||||
</label><label class="perf-settings-checkbox-label perf-settings-feature-label"><input class="perf-settings-checkbox"
|
||||
id="perf-settings-feature-checkbox-jsallocations" type="checkbox" value="jsallocations" />
|
||||
<div class="perf-settings-feature-name">JS Allocations</div>
|
||||
<div class="perf-settings-feature-title">Track JavaScript allocations (Experimental.)</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -32,6 +32,7 @@ const features = [
|
|||
"stackwalk",
|
||||
"tasktracer",
|
||||
"jstracer",
|
||||
"jsallocations",
|
||||
"trackopts",
|
||||
];
|
||||
const threadPrefix = "perf-settings-thread-checkbox-";
|
||||
|
@ -257,6 +258,7 @@ function calculateOverhead(state) {
|
|||
const overheadFromSeqStyle = state.seqstyle ? 0.05 : 0;
|
||||
const overheadFromTaskTracer = state.tasktracer ? 0.05 : 0;
|
||||
const overheadFromJSTracer = state.jstracer ? 0.05 : 0;
|
||||
const overheadFromJSAllocations = state.jsallocations ? 0.05 : 0;
|
||||
return clamp(
|
||||
overheadFromSampling +
|
||||
overheadFromBuffersize +
|
||||
|
@ -265,7 +267,8 @@ function calculateOverhead(state) {
|
|||
overheadFromJavaScrpt +
|
||||
overheadFromSeqStyle +
|
||||
overheadFromTaskTracer +
|
||||
overheadFromJSTracer,
|
||||
overheadFromJSTracer +
|
||||
overheadFromJSAllocations,
|
||||
0,
|
||||
1
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче