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

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

Issue 1969813002: [memory-infra] Improve naming consistency of values reported by memory_metric.html (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 4 years, 7 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/memory_allocator_dump.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/memory_allocator_dump_test.html
diff --git a/tracing/tracing/model/memory_allocator_dump_test.html b/tracing/tracing/model/memory_allocator_dump_test.html
index 18c529503f845592c565c7fda9d359b32c3292b2..440dc5ffcd187774a59a4b862acba8f9bb0c6c59 100644
--- a/tracing/tracing/model/memory_allocator_dump_test.html
+++ b/tracing/tracing/model/memory_allocator_dump_test.html
@@ -185,6 +185,26 @@ tr.b.unittest.testSuite(function() {
assert.isFalse(v8Object2Dump.isDescendantOf(v8Object1Dump));
});
+ test('memoryAllocatorDumps_getDescendantDumpByFullName', function() {
+ var containerDump = new ContainerMemoryDump(42);
+
+ var gpuDump = new MemoryAllocatorDump(containerDump, 'gpu');
+ containerDump.memoryAllocatorDumps = [gpuDump];
+
+ var memtrackDump = addChildDump(gpuDump, 'android_memtrack');
+ var glDump = addChildDump(memtrackDump, 'gl');
+ var gfxDump = addChildDump(memtrackDump, 'gfx');
+ var tileDump = addChildDump(gfxDump, 'tile');
+
+ assert.strictEqual(gpuDump.getDescendantDumpByFullName(
+ 'android_memtrack'), memtrackDump);
+ assert.strictEqual(gpuDump.getDescendantDumpByFullName(
+ 'android_memtrack/gfx/tile'), tileDump);
+ assert.strictEqual(memtrackDump.getDescendantDumpByFullName('gl'), glDump);
+ assert.strictEqual(memtrackDump.getDescendantDumpByFullName(
+ 'gfx/tile'), tileDump);
+ });
+
test('memoryAllocatorDumpLink_instantiate', function() {
var d1 = new MemoryAllocatorDump('v8/isolate1');
var d2 = new MemoryAllocatorDump('oilpan/document1');
« no previous file with comments | « tracing/tracing/model/memory_allocator_dump.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698