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

Unified Diff: tracing/tracing/model/container_memory_dump_test.html

Issue 1395583002: Propagate attributes from global to process memory allocator dumps (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 5 years, 2 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/container_memory_dump.html ('k') | tracing/tracing/model/global_memory_dump.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/container_memory_dump_test.html
diff --git a/tracing/tracing/model/container_memory_dump_test.html b/tracing/tracing/model/container_memory_dump_test.html
index 6b6c3879d84dcb8c0a05df0faf49ed05cc57c600..9686ef3a9c509f3d0bb87781a0d6f6e6b706f145 100644
--- a/tracing/tracing/model/container_memory_dump_test.html
+++ b/tracing/tracing/model/container_memory_dump_test.html
@@ -120,5 +120,22 @@ tr.b.unittest.testSuite(function() {
assert.equal(md.getMemoryAllocatorDumpByFullName('v8'), v8Dump);
assert.isUndefined(md.getMemoryAllocatorDumpByFullName('malloc'));
});
+
+ test('iterateRootAllocatorDumps', function() {
+ var containerDump = new ContainerMemoryDump(42);
+
+ var oilpanDump = new MemoryAllocatorDump(containerDump, 'oilpan');
+ var v8Dump = new MemoryAllocatorDump(containerDump, 'v8');
+ var v8HeapsDump = new MemoryAllocatorDump(containerDump, 'v8/heaps');
+ setUpParentChildRelationship(v8Dump, v8HeapsDump);
+
+ containerDump.memoryAllocatorDumps = [oilpanDump, v8Dump];
+
+ var visitedAllocatorDumps = [];
+ containerDump.iterateRootAllocatorDumps(
+ function(dump) { this.visitedAllocatorDumps.push(dump); },
+ { visitedAllocatorDumps: visitedAllocatorDumps });
+ assert.sameMembers(visitedAllocatorDumps, [oilpanDump, v8Dump]);
+ });
});
</script>
« no previous file with comments | « tracing/tracing/model/container_memory_dump.html ('k') | tracing/tracing/model/global_memory_dump.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698