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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js

Issue 2262303002: DevTooos: Profiler domain refactoring: Make deoptReason and positionTicks fields optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing caseq comments Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
index 876e4e32a0dc27028c98458cb52c4eb3a2d2b765..a5b9e614a0d2ad0e910085d90bc7ffb88332294b 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -702,11 +702,8 @@ WebInspector.TimelineUIUtils._buildTraceEventDetailsSynchronously = function(eve
if (event.warning)
contentHelper.appendWarningRow(event);
- if (event.name === recordTypes.JSFrame) {
- var deoptReason = eventData["deoptReason"];
- if (deoptReason && deoptReason !== "no reason")
- contentHelper.appendWarningRow(event, WebInspector.TimelineModel.WarningType.V8Deopt);
- }
+ if (event.name === recordTypes.JSFrame && eventData["deoptReason"])
+ contentHelper.appendWarningRow(event, WebInspector.TimelineModel.WarningType.V8Deopt);
if (detailed) {
contentHelper.appendTextRow(WebInspector.UIString("Self Time"), Number.millisToString(event.selfTime, true));

Powered by Google App Engine
This is Rietveld 408576698