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

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: rebased Created 6 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 | 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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 parentTreeElement.appendChild(new TreeElement(content)); 1073 parentTreeElement.appendChild(new TreeElement(content));
1074 } 1074 }
1075 } 1075 }
1076 1076
1077 appendStackTrace.call(this, this._message.stackTrace); 1077 appendStackTrace.call(this, this._message.stackTrace);
1078 1078
1079 for (var asyncTrace = this._message.asyncStackTrace; asyncTrace; asyncTr ace = asyncTrace.asyncStackTrace) { 1079 for (var asyncTrace = this._message.asyncStackTrace; asyncTrace; asyncTr ace = asyncTrace.asyncStackTrace) {
1080 if (!asyncTrace.callFrames || !asyncTrace.callFrames.length) 1080 if (!asyncTrace.callFrames || !asyncTrace.callFrames.length)
1081 break; 1081 break;
1082 var content = document.createElementWithClass("div", "stacktrace-ent ry"); 1082 var content = document.createElementWithClass("div", "stacktrace-ent ry");
1083 var description = asyncTrace.description ? asyncTrace.description + " " + WebInspector.UIString("(async)") : WebInspector.UIString("Async Call"); 1083 var description = WebInspector.asyncStackTraceLabel(asyncTrace.descr iption);
1084 content.createChild("span", "console-message-text source-code consol e-async-trace-text").textContent = description; 1084 content.createChild("span", "console-message-text source-code consol e-async-trace-text").textContent = description;
1085 parentTreeElement.appendChild(new TreeElement(content)); 1085 parentTreeElement.appendChild(new TreeElement(content));
1086 appendStackTrace.call(this, asyncTrace.callFrames); 1086 appendStackTrace.call(this, asyncTrace.callFrames);
1087 } 1087 }
1088 }, 1088 },
1089 1089
1090 resetIncrementRepeatCount: function() 1090 resetIncrementRepeatCount: function()
1091 { 1091 {
1092 this._repeatCount = 1; 1092 this._repeatCount = 1;
1093 if (!this._repeatCountElement) 1093 if (!this._repeatCountElement)
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 { 1258 {
1259 if (!this._wrapperElement) { 1259 if (!this._wrapperElement) {
1260 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this ); 1260 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this );
1261 this._wrapperElement.classList.toggle("collapsed", this._collapsed); 1261 this._wrapperElement.classList.toggle("collapsed", this._collapsed);
1262 } 1262 }
1263 return this._wrapperElement; 1263 return this._wrapperElement;
1264 }, 1264 },
1265 1265
1266 __proto__: WebInspector.ConsoleViewMessage.prototype 1266 __proto__: WebInspector.ConsoleViewMessage.prototype
1267 } 1267 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/devtools/front_end/network/NetworkPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698