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

Unified Diff: base/tracked_objects.h

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/ref_counted_memory.cc ('k') | base/tracked_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tracked_objects.h
diff --git a/base/tracked_objects.h b/base/tracked_objects.h
index 5392b9ac518c11f702ab934723f6e13a9da6c65a..b76a295d767170a427b8ee2d6e0792ffb62bd420 100644
--- a/base/tracked_objects.h
+++ b/base/tracked_objects.h
@@ -293,6 +293,7 @@ class DataCollector {
// Construct with a list of how many threads should contribute. This helps us
// determine (in the async case) when we are done with all contributions.
DataCollector();
+ ~DataCollector();
// Add all stats from the indicated thread into our arrays. This function is
// mutex protected, and *could* be called from any threads (although current
@@ -333,7 +334,8 @@ class DataCollector {
class Aggregation: public DeathData {
public:
- Aggregation() : birth_count_(0) {}
+ Aggregation();
+ ~Aggregation();
void AddDeathSnapshot(const Snapshot& snapshot);
void AddBirths(const Births& births);
@@ -469,6 +471,7 @@ class ThreadData {
typedef std::map<const Births*, DeathData> DeathMap;
ThreadData();
+ ~ThreadData();
// Using Thread Local Store, find the current instance for collecting data.
// If an instance does not exist, construct one (and remember it for use on
« no previous file with comments | « base/ref_counted_memory.cc ('k') | base/tracked_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698