| Index: third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js b/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js
|
| index 17d24cc255f717d14f091b750484affb5f7338b2..a8923ee2c0a3581d4d2b4942cd007b25ae6cefc3 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js
|
| @@ -71,14 +71,18 @@ WebInspector.LineLevelProfile.prototype = {
|
|
|
| _doUpdate: function()
|
| {
|
| + // TODO(alph): use scriptId instead of urls for the target.
|
| this._locationPool.disposeAll();
|
| WebInspector.workspace.uiSourceCodes().forEach(uiSourceCode => uiSourceCode.removeAllLineDecorations(WebInspector.LineLevelProfile.LineDecorator.type));
|
| - var debuggerModel = WebInspector.DebuggerModel.fromTarget(WebInspector.targetManager.mainTarget());
|
| - if (!debuggerModel)
|
| - return;
|
| for (var fileInfo of this._files) {
|
| var url = /** @type {string} */ (fileInfo[0]);
|
| var uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(url);
|
| + if (!uiSourceCode)
|
| + continue;
|
| + var target = WebInspector.NetworkProject.targetForUISourceCode(uiSourceCode) || WebInspector.targetManager.mainTarget();
|
| + var debuggerModel = target ? WebInspector.DebuggerModel.fromTarget(target) : null;
|
| + if (!debuggerModel)
|
| + continue;
|
| for (var lineInfo of fileInfo[1]) {
|
| var line = lineInfo[0] - 1;
|
| var time = lineInfo[1];
|
|
|