mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 702300 (part 2) - Fix indentation in about:memory tests. r=jschoenick.
--HG-- extra : rebase_source : 62b672c4e8547a16b5c68fbc88fd13aff833388c
This commit is contained in:
parent
f78c3ed9a1
commit
41546d22ae
@ -92,44 +92,44 @@
|
||||
f2("", "other4", OTHER, COUNT_CUMULATIVE, 888)
|
||||
];
|
||||
let fakeMultiReporters = [
|
||||
{ name: "fake1",
|
||||
collectReports: function(cbObj, closure) {
|
||||
function f(p, k, u, a) { cbObj.callback("", p, k, u, a, "(desc)", closure); }
|
||||
f("explicit/c/d", NONHEAP, BYTES, 13 * MB),
|
||||
f("explicit/c/d", NONHEAP, BYTES, 10 * MB), // dup
|
||||
f("explicit/c/other", NONHEAP, BYTES, 77 * MB),
|
||||
f("explicit/cc", NONHEAP, BYTES, 13 * MB);
|
||||
f("explicit/cc", NONHEAP, BYTES, 10 * MB); // dup
|
||||
f("explicit/d", NONHEAP, BYTES, 499 * KB); // omitted
|
||||
f("explicit/e", NONHEAP, BYTES, 100 * KB); // omitted
|
||||
f("explicit/f/g/h/i", HEAP, BYTES, 20 * MB);
|
||||
},
|
||||
explicitNonHeap: (100 + 13 + 10)*MB + (499 + 100)*KB
|
||||
},
|
||||
{ name: "fake2",
|
||||
collectReports: function(cbObj, closure) {
|
||||
function f(p, k, u, a) { cbObj.callback("", p, k, u, a, "(desc)", closure); }
|
||||
f("other3", OTHER, COUNT, 777);
|
||||
f("other2", OTHER, BYTES, 222 * MB);
|
||||
f("perc2", OTHER, PERCENTAGE, 10000);
|
||||
f("perc1", OTHER, PERCENTAGE, 4567);
|
||||
},
|
||||
explicitNonHeap: 0
|
||||
},
|
||||
{ name: "smaps",
|
||||
collectReports: function(cbObj, closure) {
|
||||
// The amounts are given in pages, so multiply here by 4kb.
|
||||
function f(p, a) { cbObj.callback("", p, NONHEAP, BYTES, a * 4 * KB, "(desc)", closure); }
|
||||
f("smaps/vsize/a", 24);
|
||||
f("smaps/swap/a", 1);
|
||||
f("smaps/swap/a", 2);
|
||||
f("smaps/vsize/a", 19);
|
||||
f("smaps/swap/b/c", 10);
|
||||
f("smaps/resident/a", 42);
|
||||
f("smaps/pss/a", 43);
|
||||
},
|
||||
explicitNonHeap: 0
|
||||
}
|
||||
{ name: "fake1",
|
||||
collectReports: function(cbObj, closure) {
|
||||
function f(p, k, u, a) { cbObj.callback("", p, k, u, a, "(desc)", closure); }
|
||||
f("explicit/c/d", NONHEAP, BYTES, 13 * MB),
|
||||
f("explicit/c/d", NONHEAP, BYTES, 10 * MB), // dup
|
||||
f("explicit/c/other", NONHEAP, BYTES, 77 * MB),
|
||||
f("explicit/cc", NONHEAP, BYTES, 13 * MB);
|
||||
f("explicit/cc", NONHEAP, BYTES, 10 * MB); // dup
|
||||
f("explicit/d", NONHEAP, BYTES, 499 * KB); // omitted
|
||||
f("explicit/e", NONHEAP, BYTES, 100 * KB); // omitted
|
||||
f("explicit/f/g/h/i", HEAP, BYTES, 20 * MB);
|
||||
},
|
||||
explicitNonHeap: (100 + 13 + 10)*MB + (499 + 100)*KB
|
||||
},
|
||||
{ name: "fake2",
|
||||
collectReports: function(cbObj, closure) {
|
||||
function f(p, k, u, a) { cbObj.callback("", p, k, u, a, "(desc)", closure); }
|
||||
f("other3", OTHER, COUNT, 777);
|
||||
f("other2", OTHER, BYTES, 222 * MB);
|
||||
f("perc2", OTHER, PERCENTAGE, 10000);
|
||||
f("perc1", OTHER, PERCENTAGE, 4567);
|
||||
},
|
||||
explicitNonHeap: 0
|
||||
},
|
||||
{ name: "smaps",
|
||||
collectReports: function(cbObj, closure) {
|
||||
// The amounts are given in pages, so multiply here by 4kb.
|
||||
function f(p, a) { cbObj.callback("", p, NONHEAP, BYTES, a * 4 * KB, "(desc)", closure); }
|
||||
f("smaps/vsize/a", 24);
|
||||
f("smaps/swap/a", 1);
|
||||
f("smaps/swap/a", 2);
|
||||
f("smaps/vsize/a", 19);
|
||||
f("smaps/swap/b/c", 10);
|
||||
f("smaps/resident/a", 42);
|
||||
f("smaps/pss/a", 43);
|
||||
},
|
||||
explicitNonHeap: 0
|
||||
}
|
||||
];
|
||||
for (let i = 0; i < fakeReporters.length; i++) {
|
||||
mgr.registerReporter(fakeReporters[i]);
|
||||
@ -206,18 +206,18 @@
|
||||
f("5th", "explicit/b/c/i/j", NONHEAP, 5 * KB)
|
||||
];
|
||||
let fakeMultiReporters2 = [
|
||||
// Because this multi-reporter is in a child process, the fact that we
|
||||
// skip the "smaps" multi-reporter in the parent process won't cause
|
||||
// these to be skipped; the fall-back skipping will be hit instead.
|
||||
{ name: "smaps",
|
||||
collectReports: function(cbObj, closure) {
|
||||
// The amounts are given in pages, so multiply here by 4kb.
|
||||
function f(p, a) { cbObj.callback("2nd", p, NONHEAP, BYTES, a * 4 * KB, "(desc)", closure); }
|
||||
f("smaps/vsize/a", 24);
|
||||
f("smaps/vsize/b", 24);
|
||||
},
|
||||
explicitNonHeap: 0
|
||||
}
|
||||
// Because this multi-reporter is in a child process, the fact that we
|
||||
// skip the "smaps" multi-reporter in the parent process won't cause
|
||||
// these to be skipped; the fall-back skipping will be hit instead.
|
||||
{ name: "smaps",
|
||||
collectReports: function(cbObj, closure) {
|
||||
// The amounts are given in pages, so multiply here by 4kb.
|
||||
function f(p, a) { cbObj.callback("2nd", p, NONHEAP, BYTES, a * 4 * KB, "(desc)", closure); }
|
||||
f("smaps/vsize/a", 24);
|
||||
f("smaps/vsize/b", 24);
|
||||
},
|
||||
explicitNonHeap: 0
|
||||
}
|
||||
];
|
||||
for (let i = 0; i < fakeReporters2.length; i++) {
|
||||
mgr.registerReporter(fakeReporters2[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user