Index: Source/devtools/front_end/ProfilesPanel.js |
diff --git a/Source/devtools/front_end/ProfilesPanel.js b/Source/devtools/front_end/ProfilesPanel.js |
index 4568261655f03aa7e8dab401c950291a09bc59f2..b14c7c80db8a12ed2fb18e6064e5ffe8a658bb6b 100644 |
--- a/Source/devtools/front_end/ProfilesPanel.js |
+++ b/Source/devtools/front_end/ProfilesPanel.js |
@@ -50,6 +50,11 @@ WebInspector.ProfileType.Events = { |
} |
WebInspector.ProfileType.prototype = { |
+ hasTemporaryView: function() |
+ { |
+ return false; |
+ }, |
+ |
/** |
* @return {string|null} |
*/ |
@@ -767,7 +772,7 @@ WebInspector.ProfilesPanel.prototype = { |
*/ |
_showProfile: function(profile) |
{ |
- if (!profile || profile.isTemporary) |
+ if (!profile || (profile.isTemporary && !profile.profileType().hasTemporaryView())) |
return null; |
var view = profile.view(this); |
@@ -1127,6 +1132,8 @@ WebInspector.ProfilesPanel.prototype = { |
if (isProfiling) { |
this._launcherView.profileStarted(); |
this._createTemporaryProfile(profileType); |
+ if (profileTypeObject.hasTemporaryView()) |
+ this._showProfile(profileTypeObject.findTemporaryProfile()); |
} else |
this._launcherView.profileFinished(); |
}, |