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

Unified Diff: base/tracked_objects.cc

Issue 3452030: FBTF: Moves code to the headers. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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 | « base/tracked_objects.h ('k') | base/waitable_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tracked_objects.cc
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc
index a3c125b87784391ae7889d98381806841963210b..4831e4a484dbfb2d9e8db76d827ad4e22924e768 100644
--- a/base/tracked_objects.cc
+++ b/base/tracked_objects.cc
@@ -91,6 +91,8 @@ ThreadData::Status ThreadData::status_ = ThreadData::UNINITIALIZED;
ThreadData::ThreadData() : next_(NULL), message_loop_(MessageLoop::current()) {}
+ThreadData::~ThreadData() {}
+
// static
ThreadData* ThreadData::current() {
if (!tls_index_.initialized())
@@ -584,6 +586,9 @@ DataCollector::DataCollector() {
}
}
+DataCollector::~DataCollector() {
+}
+
void DataCollector::Append(const ThreadData& thread_data) {
// Get copy of data (which is done under ThreadData's lock).
ThreadData::BirthMap birth_map;
@@ -627,6 +632,13 @@ void DataCollector::AddListOfLivingObjects() {
//------------------------------------------------------------------------------
// Aggregation
+Aggregation::Aggregation()
+ : birth_count_(0) {
+}
+
+Aggregation::~Aggregation() {
+}
+
void Aggregation::AddDeathSnapshot(const Snapshot& snapshot) {
AddBirth(snapshot.birth());
death_threads_[snapshot.death_thread()]++;
« no previous file with comments | « base/tracked_objects.h ('k') | base/waitable_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698