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

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

Issue 23609064: Make "three snapshot technique" work on heap snapshots loaded from files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/ProfilesPanel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ProfilesPanelDescriptor.js
diff --git a/Source/devtools/front_end/ProfilesPanelDescriptor.js b/Source/devtools/front_end/ProfilesPanelDescriptor.js
index 978f3d1cb61e56c591a0210ea82e0994770fda99..884fd49fb28c1c2909c2d7df22e626c78aef2914 100644
--- a/Source/devtools/front_end/ProfilesPanelDescriptor.js
+++ b/Source/devtools/front_end/ProfilesPanelDescriptor.js
@@ -53,39 +53,13 @@ WebInspector.ProfilesPanelDescriptor.ShortcutKeys = {
WebInspector.ProfilesPanelDescriptor.ProfileURLRegExp = /webkit-profile:\/\/(.+)\/(.+)/;
-WebInspector.ProfilesPanelDescriptor.UserInitiatedProfileName = "org.webkit.profiles.user-initiated";
-
-/**
- * @param {string} title
- * @return {boolean}
- */
-WebInspector.ProfilesPanelDescriptor.isUserInitiatedProfile = function(title)
-{
- return title.startsWith(WebInspector.ProfilesPanelDescriptor.UserInitiatedProfileName);
-}
-
-/**
- * @param {string} title
- * @return {number}
- * @throws {string}
- */
-WebInspector.ProfilesPanelDescriptor.userInitiatedProfileIndex = function(title)
-{
- if (!WebInspector.ProfilesPanelDescriptor.isUserInitiatedProfile(title))
- throw "Not user-initiated profile title.";
- var suffix = title.substring(WebInspector.ProfilesPanelDescriptor.UserInitiatedProfileName.length + 1);
- return parseInt(suffix, 10);
-}
-
/**
* @param {string} title
* @return {string}
*/
WebInspector.ProfilesPanelDescriptor.resolveProfileTitle = function(title)
{
- if (!WebInspector.ProfilesPanelDescriptor.isUserInitiatedProfile(title))
- return title;
- return WebInspector.UIString("Profile %d", WebInspector.ProfilesPanelDescriptor.userInitiatedProfileIndex(title));
+ return title;
}
/**
« no previous file with comments | « Source/devtools/front_end/ProfilesPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698