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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineModel.js

Issue 2900613002: Support DevTools for off-main-thread-fetch (Closed)
Patch Set: rebase Created 3 years, 5 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 | « third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 networkRequests() { 1014 networkRequests() {
1015 /** @type {!Map<string,!TimelineModel.TimelineModel.NetworkRequest>} */ 1015 /** @type {!Map<string,!TimelineModel.TimelineModel.NetworkRequest>} */
1016 var requests = new Map(); 1016 var requests = new Map();
1017 /** @type {!Array<!TimelineModel.TimelineModel.NetworkRequest>} */ 1017 /** @type {!Array<!TimelineModel.TimelineModel.NetworkRequest>} */
1018 var requestsList = []; 1018 var requestsList = [];
1019 /** @type {!Array<!TimelineModel.TimelineModel.NetworkRequest>} */ 1019 /** @type {!Array<!TimelineModel.TimelineModel.NetworkRequest>} */
1020 var zeroStartRequestsList = []; 1020 var zeroStartRequestsList = [];
1021 var types = TimelineModel.TimelineModel.RecordType; 1021 var types = TimelineModel.TimelineModel.RecordType;
1022 var resourceTypes = new Set( 1022 var resourceTypes = new Set(
1023 [types.ResourceSendRequest, types.ResourceReceiveResponse, types.Resourc eReceivedData, types.ResourceFinish]); 1023 [types.ResourceSendRequest, types.ResourceReceiveResponse, types.Resourc eReceivedData, types.ResourceFinish]);
1024 var events = this.mainThreadEvents(); 1024 var events = this.inspectedTargetEvents();
1025 for (var i = 0; i < events.length; ++i) { 1025 for (var i = 0; i < events.length; ++i) {
1026 var e = events[i]; 1026 var e = events[i];
1027 if (!resourceTypes.has(e.name)) 1027 if (!resourceTypes.has(e.name))
1028 continue; 1028 continue;
1029 var id = TimelineModel.TimelineModel.globalEventId(e, 'requestId'); 1029 var id = TimelineModel.TimelineModel.globalEventId(e, 'requestId');
1030 var request = requests.get(id); 1030 var request = requests.get(id);
1031 if (request) { 1031 if (request) {
1032 request.addEvent(e); 1032 request.addEvent(e);
1033 } else { 1033 } else {
1034 request = new TimelineModel.TimelineModel.NetworkRequest(e); 1034 request = new TimelineModel.TimelineModel.NetworkRequest(e);
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 var data = event[TimelineModel.TimelineData._symbol]; 1810 var data = event[TimelineModel.TimelineData._symbol];
1811 if (!data) { 1811 if (!data) {
1812 data = new TimelineModel.TimelineData(); 1812 data = new TimelineModel.TimelineData();
1813 event[TimelineModel.TimelineData._symbol] = data; 1813 event[TimelineModel.TimelineData._symbol] = data;
1814 } 1814 }
1815 return data; 1815 return data;
1816 } 1816 }
1817 }; 1817 };
1818 1818
1819 TimelineModel.TimelineData._symbol = Symbol('timelineData'); 1819 TimelineModel.TimelineData._symbol = Symbol('timelineData');
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698