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

Unified Diff: base/debug/activity_analyzer.cc

Issue 2753573002: Remove 'global' user-data in favor of 'process' user-data. (Closed)
Patch Set: rebased Created 3 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 | « base/debug/activity_analyzer.h ('k') | base/debug/activity_analyzer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/activity_analyzer.cc
diff --git a/base/debug/activity_analyzer.cc b/base/debug/activity_analyzer.cc
index 0ab7c3d0a0342c149b46ac568d6d409f48508bac..3c672341dd0794754a20bd960712ebe381837a0c 100644
--- a/base/debug/activity_analyzer.cc
+++ b/base/debug/activity_analyzer.cc
@@ -172,25 +172,6 @@ GlobalActivityAnalyzer::GetProcessDataSnapshot(int64_t pid) {
return iter->second.data;
}
-const ActivityUserData::Snapshot&
-GlobalActivityAnalyzer::GetGlobalDataSnapshot() {
- global_data_snapshot_.clear();
-
- PersistentMemoryAllocator::Reference ref =
- PersistentMemoryAllocator::Iterator(allocator_.get())
- .GetNextOfType(GlobalActivityTracker::kTypeIdGlobalDataRecord);
- void* memory = allocator_->GetAsArray<char>(
- ref, GlobalActivityTracker::kTypeIdGlobalDataRecord,
- PersistentMemoryAllocator::kSizeAny);
- if (memory) {
- size_t size = allocator_->GetAllocSize(ref);
- const ActivityUserData global_data(memory, size);
- global_data.CreateSnapshot(&global_data_snapshot_);
- }
-
- return global_data_snapshot_;
-}
-
std::vector<std::string> GlobalActivityAnalyzer::GetLogMessages() {
std::vector<std::string> messages;
PersistentMemoryAllocator::Reference ref;
« no previous file with comments | « base/debug/activity_analyzer.h ('k') | base/debug/activity_analyzer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698