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

Unified Diff: tracing/tracing/model/global_memory_dump_test.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/model/event_set.html ('k') | tracing/tracing/model/helpers/android_app.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/global_memory_dump_test.html
diff --git a/tracing/tracing/model/global_memory_dump_test.html b/tracing/tracing/model/global_memory_dump_test.html
index dbc472209d959a70d633d6542485ec7b786df63e..d98739f1e78999eaead170a9ec307ae53053c14a 100644
--- a/tracing/tracing/model/global_memory_dump_test.html
+++ b/tracing/tracing/model/global_memory_dump_test.html
@@ -671,8 +671,8 @@ tr.b.unittest.testSuite(function() {
var containerDumps = createContainerDumps(1);
var gmd = containerDumps[0];
var pmd = containerDumps[1];
- var rootDump = newAllocatorDump(pmd, 'root', { size: 100 });
- addChildDump(rootDump, 'parent', { size: 49 });
+ var rootDump = newAllocatorDump(pmd, 'root', {numerics: {size: 100}});
+ addChildDump(rootDump, 'parent', {numerics: {size: 49}});
pmd.memoryAllocatorDumps = [rootDump];
assert.throws(function() {
@@ -698,8 +698,9 @@ tr.b.unittest.testSuite(function() {
var containerDumps = createContainerDumps(1);
var gmd = containerDumps[0];
var pmd = containerDumps[1];
- var rootDump = newAllocatorDump(pmd, 'root', { effective_size: 99 });
- addChildDump(rootDump, 'parent', { effective_size: 50 });
+ var rootDump = newAllocatorDump(pmd, 'root',
+ {numerics: {effective_size: 99}});
+ addChildDump(rootDump, 'parent', {numerics: {effective_size: 50}});
pmd.memoryAllocatorDumps = [rootDump];
assert.throws(function() {
@@ -725,9 +726,7 @@ tr.b.unittest.testSuite(function() {
var containerDumps = createContainerDumps(0);
var gmd = containerDumps[0];
gmd.memoryAllocatorDumps = [
- newAllocatorDump(gmd, 'v8', {
- size: 50
- })
+ newAllocatorDump(gmd, 'v8', {numerics: {size: 50}})
];
assert.throws(function() {
@@ -752,7 +751,7 @@ tr.b.unittest.testSuite(function() {
test('testSanityCheck_checkDumpTrees_invalidInfo', function() {
var containerDumps = createContainerDumps(0);
var gmd = containerDumps[0];
- var v8Dump = newAllocatorDump(gmd, 'v8', { size: 50 });
+ var v8Dump = newAllocatorDump(gmd, 'v8', {numerics: {size: 50}});
v8Dump.infos.push({
type: PROVIDED_SIZE_LESS_THAN_AGGREGATED_CHILDREN,
providedSize: 40,
@@ -784,7 +783,7 @@ tr.b.unittest.testSuite(function() {
var containerDumps = createContainerDumps(0);
var gmd = containerDumps[0];
var v8Dump = new MemoryAllocatorDump(gmd, 'v8');
- addChildDump(v8Dump, 'child1', {}, 42 /* guid */);
+ addChildDump(v8Dump, 'child1', {guid: 42});
addChildDump(v8Dump, 'child2');
gmd.memoryAllocatorDumps = [v8Dump];
@@ -3432,7 +3431,7 @@ tr.b.unittest.testSuite(function() {
var ownedChildDump = pmd.getMemoryAllocatorDumpByFullName(
'root/owned_child');
assertDumpSizes(ownedChildDump, 20, 13, [] /* expectedInfos */,
- { owner_child: 7 } /* expectedOwnedBySiblingSizes */);
+ {'owner_child': 7} /* expectedOwnedBySiblingSizes */);
});
// Check that numeric and diagnostics propagation and aggregation are
@@ -3511,39 +3510,39 @@ tr.b.unittest.testSuite(function() {
checkDumpNumericsAndDiagnostics(
pmd.getMemoryAllocatorDumpByFullName('direct_owner'),
{
- 'size': 10,
- 'effective_size': 3.3333,
- 'summed': 27
+ size: 10,
+ effective_size: 3.3333,
+ summed: 27
},
{
- 'url': 'file://not_overriden.html'
+ url: 'file://not_overriden.html'
});
checkDumpNumericsAndDiagnostics(
pmd.getMemoryAllocatorDumpByFullName('parent_owner/child_owner'),
{
- 'size': 10,
- 'effective_size': 3.3333,
- 'summed': 27
+ size: 10,
+ effective_size: 3.3333,
+ summed: 27
},
{
- 'url': 'https://hello.world.com:42'
+ url: 'https://hello.world.com:42'
});
checkDumpNumericsAndDiagnostics(
pmd.getMemoryAllocatorDumpByFullName('parent_owner'),
{
- 'size': 15,
- 'effective_size': 8.3333,
- 'summed': 40
+ size: 15,
+ effective_size: 8.3333,
+ summed: 40
}, {});
checkDumpNumericsAndDiagnostics(
pmd.getMemoryAllocatorDumpByFullName('precedent_owner'),
{
- 'size': 10,
- 'effective_size': 3.3333,
- 'summed': 0
+ size: 10,
+ effective_size: 3.3333,
+ summed: 0
},
{
- 'url': 'https://hello.world.com:42'
+ url: 'https://hello.world.com:42'
});
checkDumpNumericsAndDiagnostics(
pmd.getMemoryAllocatorDumpByFullName('indirect_owner'), {}, {});
@@ -3610,8 +3609,8 @@ tr.b.unittest.testSuite(function() {
gmd = new GlobalMemoryDump(model, 10);
model.globalMemoryDumps.push(gmd);
- rootDump = newAllocatorDump(gmd, 'root', { size: 64 });
- childDump = addChildDump(rootDump, 'child', { size: 48 });
+ rootDump = newAllocatorDump(gmd, 'root', {numerics: {size: 64}});
+ childDump = addChildDump(rootDump, 'child', {numerics: {size: 48}});
gmd.memoryAllocatorDumps = [rootDump];
« no previous file with comments | « tracing/tracing/model/event_set.html ('k') | tracing/tracing/model/helpers/android_app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698