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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-js-callstacks.html

Issue 1292943002: DevTools: Add total time column to the timeline tree view (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressing comment Created 5 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-js-callstacks-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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="../tracing-test.js"></script> 4 <script src="../tracing-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var sessionId = "6.23"; 8 var sessionId = "6.23";
9 var rawTraceEvents = [ 9 var rawTraceEvents = [
10 { 10 {
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 printProfileTree(0, treeBottomUp); 393 printProfileTree(0, treeBottomUp);
394 394
395 function eventId(event) 395 function eventId(event)
396 { 396 {
397 var data = event.args.data; 397 var data = event.args.data;
398 return data && (data.callUID || data.functionNode); 398 return data && (data.callUID || data.functionNode);
399 } 399 }
400 400
401 function printProfileTree(padding, node) 401 function printProfileTree(padding, node)
402 { 402 {
403 InspectorTest.addResult(" ".repeat(padding) + node.name + ": " + node.t otalTime.toFixed(3)); 403 InspectorTest.addResult(" ".repeat(padding) + node.name + ": " + [node. selfTime, node.totalTime].map(function (t) { return t.toFixed(3); }).join(" ")) ;
404 (node.children || new Map()).forEach(printProfileTree.bind(null, padding + 1)); 404 (node.children || new Map()).forEach(printProfileTree.bind(null, padding + 1));
405 } 405 }
406 406
407 InspectorTest.completeTest(); 407 InspectorTest.completeTest();
408 } 408 }
409 409
410 </script> 410 </script>
411 </head> 411 </head>
412 <body onload="runTest()"> 412 <body onload="runTest()">
413 </body> 413 </body>
414 </html> 414 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-js-callstacks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698