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

Unified Diff: Source/core/inspector/InspectorHeapProfilerAgent.cpp

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
Index: Source/core/inspector/InspectorHeapProfilerAgent.cpp
diff --git a/Source/core/inspector/InspectorHeapProfilerAgent.cpp b/Source/core/inspector/InspectorHeapProfilerAgent.cpp
index d85ed881113654556bbd2157b9850c14e7648e47..b8c9e1bd773ee6717f7e3de1a01dc45372b1b42a 100644
--- a/Source/core/inspector/InspectorHeapProfilerAgent.cpp
+++ b/Source/core/inspector/InspectorHeapProfilerAgent.cpp
@@ -44,8 +44,6 @@ namespace HeapProfilerAgentState {
static const char profileHeadersRequested[] = "profileHeadersRequested";
}
-static const char* const userInitiatedProfileNameHeap = "org.webkit.profiles.user-initiated";
-
class InspectorHeapProfilerAgent::HeapStatsUpdateTask {
public:
HeapStatsUpdateTask(InspectorHeapProfilerAgent*);
@@ -263,9 +261,7 @@ void InspectorHeapProfilerAgent::takeHeapSnapshot(ErrorString*, const bool* repo
int m_totalWork;
};
- String title = String(userInitiatedProfileNameHeap) + "." + String::number(m_nextUserInitiatedHeapSnapshotNumber);
- ++m_nextUserInitiatedHeapSnapshotNumber;
-
+ String title = "Snapshot " + String::number(m_nextUserInitiatedHeapSnapshotNumber++);
HeapSnapshotProgress progress(reportProgress && *reportProgress ? m_frontend : 0);
RefPtr<ScriptHeapSnapshot> snapshot = ScriptProfiler::takeHeapSnapshot(title, &progress);
if (snapshot) {
« no previous file with comments | « LayoutTests/inspector/profiler/cpu-profiler-save-load.html ('k') | Source/core/inspector/InspectorProfilerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698