Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: tracing/tracing/ui/tracks/memory_dump_track_test_utils.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/ui/tracks/cpu_usage_track_test.html ('k') | tracing/tracing/ui/tracks/model_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/memory_dump_track_test_utils.html
diff --git a/tracing/tracing/ui/tracks/memory_dump_track_test_utils.html b/tracing/tracing/ui/tracks/memory_dump_track_test_utils.html
index 2d13a901ba82710b9ae497a5505a3e8999cb7724..72df83932020252efda8c997014111a3736e9835 100644
--- a/tracing/tracing/ui/tracks/memory_dump_track_test_utils.html
+++ b/tracing/tracing/ui/tracks/memory_dump_track_test_utils.html
@@ -54,7 +54,8 @@ tr.exportTo('tr.ui.tracks', function() {
var allocatorDumps = tr.b.mapItems(dumpData, function(allocatorName, data) {
var size = data.size;
assert.typeOf(size, 'number'); // Sanity check.
- return newAllocatorDump(memoryDump, allocatorName, { size: size });
+ return newAllocatorDump(memoryDump, allocatorName,
+ {numerics: {size: size}});
});
// Add ownership links between them.
@@ -76,7 +77,7 @@ tr.exportTo('tr.ui.tracks', function() {
function addProcessMemoryDumpWithFields(globalMemoryDump, process, start,
opt_pssValues, opt_dumpData) {
- var pmd = addProcessMemoryDump(globalMemoryDump, process, start);
+ var pmd = addProcessMemoryDump(globalMemoryDump, process, {ts: start});
if (opt_pssValues !== undefined)
pmd.vmRegions = createVMRegions(opt_pssValues);
if (opt_dumpData !== undefined)
@@ -96,12 +97,12 @@ tr.exportTo('tr.ui.tracks', function() {
var pb = model.getOrCreateProcess(6);
var pc = model.getOrCreateProcess(9);
- var gmd1 = addGlobalMemoryDump(model, 0, LIGHT);
+ var gmd1 = addGlobalMemoryDump(model, {ts: 0, levelOfDetail: LIGHT});
addProcessMemoryDumpWithFields(gmd1, pa, 0, maybePssValues([111]));
addProcessMemoryDumpWithFields(gmd1, pb, 0.2, undefined,
maybeDumpData({oilpan: {size: 1024}}));
- var gmd2 = addGlobalMemoryDump(model, 5, DETAILED);
+ var gmd2 = addGlobalMemoryDump(model, {ts: 5, levelOfDetail: DETAILED});
addProcessMemoryDumpWithFields(gmd2, pa, 0);
addProcessMemoryDumpWithFields(gmd2, pb, 4.99, maybePssValues([100, 50]),
maybeDumpData({v8: {size: 512}}));
@@ -109,13 +110,13 @@ tr.exportTo('tr.ui.tracks', function() {
maybeDumpData({oilpan: {size: 128, owns: 'v8'},
v8: {size: 384, owns: 'tracing'}, tracing: {size: 65920}}));
- var gmd3 = addGlobalMemoryDump(model, 15, DETAILED);
+ var gmd3 = addGlobalMemoryDump(model, {ts: 15, levelOfDetail: DETAILED});
addProcessMemoryDumpWithFields(gmd3, pa, 15.5, maybePssValues([]),
maybeDumpData({v8: {size: 768}}));
addProcessMemoryDumpWithFields(gmd3, pc, 14.5,
maybePssValues([70, 70, 70]), maybeDumpData({oilpan: {size: 512}}));
- var gmd4 = addGlobalMemoryDump(model, 18, LIGHT);
+ var gmd4 = addGlobalMemoryDump(model, {ts: 18, levelOfDetail: LIGHT});
});
}
« no previous file with comments | « tracing/tracing/ui/tracks/cpu_usage_track_test.html ('k') | tracing/tracing/ui/tracks/model_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698