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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html

Issue 1911243002: DevTools: Do not record nested FunctionCall events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event-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="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 6
7 function performActions(callback) 7 function performActions(callback)
8 { 8 {
9 var image = new Image(); 9 var image = new Image();
10 image.onload = bar; 10 image.onload = bar;
(...skipping 16 matching lines...) Expand all
27 27
28 function finish() 28 function finish()
29 { 29 {
30 var recordTypes = WebInspector.TimelineModel.RecordType; 30 var recordTypes = WebInspector.TimelineModel.RecordType;
31 var typesToDump = new Set([recordTypes.ResourceSendRequest, recordTypes. ResourceReceiveResponse, recordTypes.ResourceReceivedData, recordTypes.ResourceF inish, 31 var typesToDump = new Set([recordTypes.ResourceSendRequest, recordTypes. ResourceReceiveResponse, recordTypes.ResourceReceivedData, recordTypes.ResourceF inish,
32 recordTypes.EventDispatch, recordTypes.FunctionCall]); 32 recordTypes.EventDispatch, recordTypes.FunctionCall]);
33 function dumpEvent(traceEvent, level) 33 function dumpEvent(traceEvent, level)
34 { 34 {
35 // Ignore stray paint & rendering events for better stability. 35 // Ignore stray paint & rendering events for better stability.
36 var categoryName = WebInspector.TimelineUIUtils.eventStyle(traceEven t).category.name; 36 var categoryName = WebInspector.TimelineUIUtils.eventStyle(traceEven t).category.name;
37 if (categoryName !== "loading" && categoryName !== "scripting") 37 if (categoryName !== "loading" && categoryName !== "scripting")
38 return; 38 return;
39 // Here and below: pretend coalesced record are just not there, as c oalescation is time dependent and, hence, not stable. 39 // Here and below: pretend coalesced record are just not there, as c oalescation is time dependent and, hence, not stable.
40 // Filter out InjectedScript function call because they happen out o f sync. 40 // Filter out InjectedScript function call because they happen out o f sync.
41 if (typesToDump.has(traceEvent.name) && (traceEvent.name !== "Functi onCall" || traceEvent.args["data"].scriptName)) { 41 if (typesToDump.has(traceEvent.name) && (traceEvent.name !== "Functi onCall" || traceEvent.args["data"].scriptName))
42 InspectorTest.addResult(" ".repeat(level - 1) + traceEvent.na me); 42 InspectorTest.addResult(" ".repeat(level - 1) + traceEvent.na me);
43 }
44 } 43 }
45 InspectorTest.walkTimelineEventTree(dumpEvent); 44 InspectorTest.walkTimelineEventTree(dumpEvent);
46 InspectorTest.completeTest(); 45 InspectorTest.completeTest();
47 } 46 }
48 } 47 }
49 48
50 if (!window.testRunner) 49 if (!window.testRunner)
51 setTimeout(performActions, 3000); 50 setTimeout(performActions, 3000);
52 51
53 </script> 52 </script>
54 </head> 53 </head>
55 54
56 <body onload="runTest()"> 55 <body onload="runTest()">
57 <p> 56 <p>
58 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc. 57 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc.
59 </p> 58 </p>
60 59
61 </body> 60 </body>
62 </html> 61 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698