diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-28 22:54:58 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-28 22:54:58 +0000 |
commit | d4799a3bf70ecc62ab702150cae1d1e925b14938 (patch) | |
tree | fae21bc09ddaa68dfc709e0d6abc55a43fe99333 /base/tracked_objects.cc | |
parent | 7176ef1c7ada2da66a47ed38987c92a06f3bfb4a (diff) | |
download | chromium_src-d4799a3bf70ecc62ab702150cae1d1e925b14938.zip chromium_src-d4799a3bf70ecc62ab702150cae1d1e925b14938.tar.gz chromium_src-d4799a3bf70ecc62ab702150cae1d1e925b14938.tar.bz2 |
FBTF: Moves code to the headers.
One of the big things is starting to move/declare ctors/dtors that derive from RefCounted<> to/in the implementation file.
(Saves 4 megabytes from libglue.a alone. 1 meg off libbrowser.a. Hundred of kilobyte savings in a large number of .a files; only libmedia.a grew and it's only 100k.)
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3452030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tracked_objects.cc')
-rw-r--r-- | base/tracked_objects.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc index a3c125b..4831e4a 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()]++; |