OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 Timeline.TimelineUIUtils._stackTraceFromCallFrames(timelineData.stackT
race)); | 1205 Timeline.TimelineUIUtils._stackTraceFromCallFrames(timelineData.stackT
race)); |
1206 } | 1206 } |
1207 | 1207 |
1208 var initiator = TimelineModel.TimelineData.forEvent(event).initiator(); | 1208 var initiator = TimelineModel.TimelineData.forEvent(event).initiator(); |
1209 // Indirect causes. | 1209 // Indirect causes. |
1210 if (TimelineModel.InvalidationTracker.invalidationEventsFor(event) && | 1210 if (TimelineModel.InvalidationTracker.invalidationEventsFor(event) && |
1211 target) { // Full invalidation tracking (experimental). | 1211 target) { // Full invalidation tracking (experimental). |
1212 contentHelper.addSection(Common.UIString('Invalidations')); | 1212 contentHelper.addSection(Common.UIString('Invalidations')); |
1213 Timeline.TimelineUIUtils._generateInvalidations(event, target, relatedNode
sMap, contentHelper); | 1213 Timeline.TimelineUIUtils._generateInvalidations(event, target, relatedNode
sMap, contentHelper); |
1214 } else if (initiator) { // Partial invalidation tracking. | 1214 } else if (initiator) { // Partial invalidation tracking. |
| 1215 var delay = event.startTime - initiator.startTime; |
| 1216 contentHelper.appendTextRow(Common.UIString('Pending for'), Number.precise
MillisToString(delay, 1)); |
| 1217 |
| 1218 var link = createElementWithClass('span', 'devtools-link'); |
| 1219 link.textContent = Common.UIString('reveal'); |
| 1220 link.addEventListener('click', () => { |
| 1221 Timeline.TimelinePanel.instance().select( |
| 1222 Timeline.TimelineSelection.fromTraceEvent(/** @type {!SDK.TracingMod
el.Event} */ (initiator))); |
| 1223 }); |
| 1224 contentHelper.appendElementRow(Common.UIString('Initiator'), link); |
| 1225 |
1215 var initiatorStackTrace = TimelineModel.TimelineData.forEvent(initiator).s
tackTrace; | 1226 var initiatorStackTrace = TimelineModel.TimelineData.forEvent(initiator).s
tackTrace; |
1216 if (initiatorStackTrace) { | 1227 if (initiatorStackTrace) { |
1217 contentHelper.appendStackTrace( | 1228 contentHelper.appendStackTrace( |
1218 callSiteStackLabel || Common.UIString('First Invalidated'), | 1229 callSiteStackLabel || Common.UIString('First Invalidated'), |
1219 Timeline.TimelineUIUtils._stackTraceFromCallFrames(initiatorStackTra
ce)); | 1230 Timeline.TimelineUIUtils._stackTraceFromCallFrames(initiatorStackTra
ce)); |
1220 } | 1231 } |
1221 } | 1232 } |
1222 } | 1233 } |
1223 | 1234 |
1224 /** | 1235 /** |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2284 * @param {string=} warningType | 2295 * @param {string=} warningType |
2285 */ | 2296 */ |
2286 appendWarningRow(event, warningType) { | 2297 appendWarningRow(event, warningType) { |
2287 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); | 2298 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); |
2288 if (warning) | 2299 if (warning) |
2289 this.appendElementRow(Common.UIString('Warning'), warning, true); | 2300 this.appendElementRow(Common.UIString('Warning'), warning, true); |
2290 } | 2301 } |
2291 }; | 2302 }; |
2292 | 2303 |
2293 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo
wnCache'); | 2304 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo
wnCache'); |
OLD | NEW |