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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/profiler/heap-profiler-profiling.html

Issue 2297903005: DevTools: (anonymous function) ==> (anonymous) (Closed)
Patch Set: rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="profiler-test.js"></script> 4 <script src="profiler-test.js"></script>
5 <script> 5 <script>
6 6
7 function pageFunction() { 7 function pageFunction() {
8 (function () { 8 (function () {
9 window.holder = []; 9 window.holder = [];
10 // Allocate few MBs of data. 10 // Allocate few MBs of data.
(...skipping 26 matching lines...) Expand all
37 37
38 InspectorTest.runProfilerTestSuite([ 38 InspectorTest.runProfilerTestSuite([
39 function testProfiling(next) 39 function testProfiling(next)
40 { 40 {
41 function findPageFunctionInProfileView(view) 41 function findPageFunctionInProfileView(view)
42 { 42 {
43 var tree = view.profileDataGridTree; 43 var tree = view.profileDataGridTree;
44 if (!tree) 44 if (!tree)
45 InspectorTest.addResult("no tree"); 45 InspectorTest.addResult("no tree");
46 checkFunction(tree, "pageFunction", "heap-profiler-profiling.htm l:7"); 46 checkFunction(tree, "pageFunction", "heap-profiler-profiling.htm l:7");
47 checkFunction(tree, "(anonymous function)", "heap-profiler-profi ling.html:8"); 47 checkFunction(tree, "(anonymous)", "heap-profiler-profiling.html :8");
48 next(); 48 next();
49 } 49 }
50 InspectorTest.showProfileWhenAdded("Profile 1"); 50 InspectorTest.showProfileWhenAdded("Profile 1");
51 InspectorTest.waitUntilProfileViewIsShown("Profile 1", findPageFunct ionInProfileView); 51 InspectorTest.waitUntilProfileViewIsShown("Profile 1", findPageFunct ionInProfileView);
52 InspectorTest.startSamplingHeapProfiler(); 52 InspectorTest.startSamplingHeapProfiler();
53 InspectorTest.evaluateInPage("pageFunction()", InspectorTest.stopSam plingHeapProfiler); 53 InspectorTest.evaluateInPage("pageFunction()", InspectorTest.stopSam plingHeapProfiler);
54 } 54 }
55 ]); 55 ]);
56 } 56 }
57 57
58 </script> 58 </script>
59 </head> 59 </head>
60 <body onload="runTest()"> 60 <body onload="runTest()">
61 <p> 61 <p>
62 Tests that sampling heap profiling works. 62 Tests that sampling heap profiling works.
63 63
64 <a href="https://bugs.webkit.org/show_bug.cgi?id=52634">Bug 52634.</a> 64 <a href="https://bugs.webkit.org/show_bug.cgi?id=52634">Bug 52634.</a>
65 </p> 65 </p>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698