Chromium Code Reviews| Index: base/tracked_objects.h |
| diff --git a/base/tracked_objects.h b/base/tracked_objects.h |
| index 5954f16eebd9d3217a669f14ee946a27a8d3f0e2..fdee1b08ff29830f48ed69a0f4dd828290a5ce6a 100644 |
| --- a/base/tracked_objects.h |
| +++ b/base/tracked_objects.h |
| @@ -493,9 +493,17 @@ class BASE_API ThreadData { |
| // In this thread's data, record a new birth. |
| Births* TallyABirth(const Location& location); |
|
willchan no longer on Chromium
2011/07/08 12:04:21
Spurious?
awong
2011/07/08 18:36:51
Done.
|
| + |
| // Find a place to record a death on this thread. |
| void TallyADeath(const Births& lifetimes, const base::TimeDelta& duration); |
| + // Helper methods to only tally if the current thread has tracking active. |
| + // |
| + // TallyABirthIfActive will returns NULL if the birth cannot be tallied. |
| + static Births* TallyABirthIfActive(const Location& location); |
| + static void TallyADeathIfActive(const Births* lifetimes, |
| + const base::TimeDelta& duration); |
| + |
| // (Thread safe) Get start of list of instances. |
| static ThreadData* first(); |
| // Iterate through the null terminated list of instances. |