Changeset 110421 in webkit
- Timestamp:
- Mar 12, 2012 5:31:41 AM (12 years ago)
- Location:
- trunk/PerformanceTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/ChangeLog
r110009 r110421 1 2012-03-12 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Web Inspector: chromium: increase heap snapshot performance coverage. 4 https://bugs.webkit.org/show_bug.cgi?id=80829 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/detailed-heapshots-smoke-test.html: 9 * inspector/performance-test.js: 10 (initialize_TimeTracker.InspectorTest.measureFunction): 11 1 12 2012-03-06 Kentaro Hara <haraken@chromium.org> 2 13 -
trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html
r109913 r110421 10 10 function performanceTest(timer) 11 11 { 12 13 12 var transferTimerCookie; 14 13 var showTimerCookie; … … 16 15 var clearTimerCookie; 17 16 18 var allTimerCookie = timer.start("summary-snapshot-time");17 var fullTimerCookie = timer.start("full-summary-snapshot-time"); 19 18 var backendTimerCookie = timer.start("take-snapshot"); 20 19 ProfilerAgent.takeHeapSnapshot(step0); … … 22 21 function step0() 23 22 { 23 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildRetainers"); 24 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildDominatedNodes"); 25 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateFlags"); 26 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildAggregates"); 27 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateObjectToWindowDistance"); 28 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildNodeIndex"); 29 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_markDetachedDOMTreeNodes"); 30 InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_markQueriableHeapObjects"); 31 24 32 timer.finish(backendTimerCookie); 25 33 transferTimerCookie = timer.start("transfer-snapshot"); … … 41 49 { 42 50 timer.finish(showTimerCookie); 43 timer.finish(allTimerCookie);44 51 changeViewTimerCookie = timer.start("switch-to-containment-view"); 45 52 InspectorTest.switchToView("Containment", cleanup); … … 49 56 { 50 57 timer.finish(changeViewTimerCookie); 58 timer.finish(fullTimerCookie); 51 59 clearTimerCookie = timer.start("clear-snapshot"); 52 60 ProfilerAgent.clearProfiles(done); … … 57 65 { 58 66 timer.finish(clearTimerCookie); 59 timer.done(" panel-update");67 timer.done("heap-snapshot"); 60 68 } 61 69 } 62 70 63 InspectorTest.runPerformanceTest(performanceTest, 25000);71 InspectorTest.runPerformanceTest(performanceTest, 60000); 64 72 } 73 74 var counter = 0; 75 76 function makeObjectsTree(deep) 77 { 78 var node = {}; 79 node.text = "some text " + counter; 80 if (deep === 0) 81 return node; 82 for (var i = 0; i < 2; ++i) 83 node[counter++] = makeObjectsTree(deep - 1); 84 return node; 85 } 86 87 function makeObjectsTree2(name, deep) 88 { 89 window[name] = makeObjectsTree(deep); 90 } 91 92 makeObjectsTree2("t", 14); 65 93 66 94 </script> -
trunk/PerformanceTests/inspector/performance-test.js
r103175 r110421 87 87 } 88 88 89 InspectorTest.measureFunction = function(object, functionName) 90 { 91 function measure() { 92 var timer = InspectorTest.timer; 93 var cookie; 94 if (timer) 95 cookie = timer.start(functionName); 96 var result = func.apply(this, arguments); 97 98 if (timer) 99 timer.finish(cookie); 100 return result; 101 } 102 var func = object[functionName]; 103 object[functionName] = measure; 104 } 105 89 106 InspectorTest.mark = function(markerName) 90 107 {
Note: See TracChangeset
for help on using the changeset viewer.