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

Unified Diff: Source/devtools/front_end/ProfilesPanel.js

Issue 14639004: DevTools: [TrackingHeapProfiler] Provide a chart with living heap date at recording time. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Source/devtools/front_end/HeapSnapshotView.js ('k') | Source/devtools/front_end/flameChart.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
},
« no previous file with comments | « Source/devtools/front_end/HeapSnapshotView.js ('k') | Source/devtools/front_end/flameChart.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698