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

Unified Diff: LayoutTests/inspector/profiler/memory-instrumentation-test.js

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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
Index: LayoutTests/inspector/profiler/memory-instrumentation-test.js
diff --git a/LayoutTests/inspector/profiler/memory-instrumentation-test.js b/LayoutTests/inspector/profiler/memory-instrumentation-test.js
deleted file mode 100644
index 9e61588aae2d43b4d58790e43031a630a21490af..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/profiler/memory-instrumentation-test.js
+++ /dev/null
@@ -1,52 +0,0 @@
-var initialize_MemoryInstrumentationTest = function() {
-
-InspectorTest._memoryBlockSize = function(path, root)
-{
- var pathPos = 0;
- var children = [root];
-
- while (true) {
- var name = path[pathPos++];
- var child = null;
- for (var i = 0; i < children.length; i++) {
- if (children[i].name === name) {
- if (pathPos === path.length)
- return children[i].size;
- else {
- child = children[i];
- break;
- }
- }
- }
- if (child) {
- children = child.children;
- if (!children) {
- InspectorTest.addResult(name + " has no children");
- return -1;
- }
- } else {
- InspectorTest.addResult(name + " not found");
- return -1;
- }
- }
- return -1;
-};
-
-InspectorTest.validateMemoryBlockSize = function(path, expectedMinimalSize)
-{
- function didReceiveMemorySnapshot(error, memoryBlock)
- {
- var size = InspectorTest._memoryBlockSize(path, memoryBlock);
- if (size > expectedMinimalSize)
- InspectorTest.addResult("PASS: block size for path = [" + path.join(", ") + "] is OK.");
- else {
- InspectorTest.addResult("FAIL: block size for path = [" + path.join(", ") + "] is too small.");
- InspectorTest.addResult("expected minimal block size is " + expectedMinimalSize + " actual is " + size);
- }
- InspectorTest.completeTest();
- }
-
- MemoryAgent.getProcessMemoryDistribution(didReceiveMemorySnapshot.bind(this));
-};
-
-};

Powered by Google App Engine
This is Rietveld 408576698