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

Unified Diff: base/tracked_objects.h

Issue 7316015: Support Closure in ALL the loops! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 9 years, 5 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
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.

Powered by Google App Engine
This is Rietveld 408576698