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

Side by Side Diff: Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 416843002: DevTools: Send async stack trace with Network.Initiator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 parentTreeElement.appendChild(new TreeElement(content)); 1076 parentTreeElement.appendChild(new TreeElement(content));
1077 } 1077 }
1078 } 1078 }
1079 1079
1080 appendStackTrace.call(this, this._message.stackTrace); 1080 appendStackTrace.call(this, this._message.stackTrace);
1081 1081
1082 for (var asyncTrace = this._message.asyncStackTrace; asyncTrace; asyncTr ace = asyncTrace.asyncStackTrace) { 1082 for (var asyncTrace = this._message.asyncStackTrace; asyncTrace; asyncTr ace = asyncTrace.asyncStackTrace) {
1083 if (!asyncTrace.callFrames || !asyncTrace.callFrames.length) 1083 if (!asyncTrace.callFrames || !asyncTrace.callFrames.length)
1084 break; 1084 break;
1085 var content = document.createElementWithClass("div", "stacktrace-ent ry"); 1085 var content = document.createElementWithClass("div", "stacktrace-ent ry");
1086 var description = asyncTrace.description ? asyncTrace.description + " " + WebInspector.UIString("(async)") : WebInspector.UIString("Async Call"); 1086 var description = WebInspector.asyncStackTraceLabel(asyncTrace.descr iption);
1087 content.createChild("span", "console-message-text source-code consol e-async-trace-text").textContent = description; 1087 content.createChild("span", "console-message-text source-code consol e-async-trace-text").textContent = description;
1088 parentTreeElement.appendChild(new TreeElement(content)); 1088 parentTreeElement.appendChild(new TreeElement(content));
1089 appendStackTrace.call(this, asyncTrace.callFrames); 1089 appendStackTrace.call(this, asyncTrace.callFrames);
1090 } 1090 }
1091 }, 1091 },
1092 1092
1093 resetIncrementRepeatCount: function() 1093 resetIncrementRepeatCount: function()
1094 { 1094 {
1095 this._repeatCount = 1; 1095 this._repeatCount = 1;
1096 if (!this._repeatCountElement) 1096 if (!this._repeatCountElement)
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 { 1261 {
1262 if (!this._wrapperElement) { 1262 if (!this._wrapperElement) {
1263 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this ); 1263 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this );
1264 this._wrapperElement.classList.toggle("collapsed", this._collapsed); 1264 this._wrapperElement.classList.toggle("collapsed", this._collapsed);
1265 } 1265 }
1266 return this._wrapperElement; 1266 return this._wrapperElement;
1267 }, 1267 },
1268 1268
1269 __proto__: WebInspector.ConsoleViewMessage.prototype 1269 __proto__: WebInspector.ConsoleViewMessage.prototype
1270 } 1270 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698