summaryrefslogtreecommitdiffstats
path: root/base/tracked_objects.cc
diff options
context:
space:
mode:
authorvadimt <vadimt@chromium.org>2015-03-09 16:36:25 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-09 23:36:49 +0000
commit0b8f5a8f335e6de9e80e13e315b4e3f7f6460079 (patch)
tree9ab364f1d925db0e4ce485fca8263048761662f8 /base/tracked_objects.cc
parentac264414398335718c0df710956cbfb965b5f5cf (diff)
downloadchromium_src-0b8f5a8f335e6de9e80e13e315b4e3f7f6460079.zip
chromium_src-0b8f5a8f335e6de9e80e13e315b4e3f7f6460079.tar.gz
chromium_src-0b8f5a8f335e6de9e80e13e315b4e3f7f6460079.tar.bz2
Removing unused Births methods and unnecessary link from chrome://profiler.
Removing [Reset tracking data] was approved by jar@. It was never fully implemented (only for the browser process) and is superseded by taking and comparing snapshots in chrome://profiler tab. BUG=456354 Review URL: https://codereview.chromium.org/980333004 Cr-Commit-Position: refs/heads/master@{#319770}
Diffstat (limited to 'base/tracked_objects.cc')
-rw-r--r--base/tracked_objects.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc
index f7ee6da..5359d89 100644
--- a/base/tracked_objects.cc
+++ b/base/tracked_objects.cc
@@ -227,10 +227,6 @@ int Births::birth_count() const { return birth_count_; }
void Births::RecordBirth() { ++birth_count_; }
-void Births::ForgetBirth() { --birth_count_; }
-
-void Births::Clear() { birth_count_ = 0; }
-
//------------------------------------------------------------------------------
// ThreadData maintains the central data for all births and deaths on a single
// thread.
@@ -654,26 +650,6 @@ void ThreadData::SnapshotMaps(BirthMap* birth_map,
parent_child_set->insert(*it);
}
-// static
-void ThreadData::ResetAllThreadData() {
- ThreadData* my_list = first();
-
- for (ThreadData* thread_data = my_list;
- thread_data;
- thread_data = thread_data->next())
- thread_data->Reset();
-}
-
-void ThreadData::Reset() {
- base::AutoLock lock(map_lock_);
- for (DeathMap::iterator it = death_map_.begin();
- it != death_map_.end(); ++it)
- it->second.Clear();
- for (BirthMap::iterator it = birth_map_.begin();
- it != birth_map_.end(); ++it)
- it->second->Clear();
-}
-
static void OptionallyInitializeAlternateTimer() {
NowFunction* alternate_time_source = GetAlternateTimeSource();
if (alternate_time_source)