Chromium Code Reviews| Index: base/tracked_objects.h |
| =================================================================== |
| --- base/tracked_objects.h (revision 109040) |
| +++ base/tracked_objects.h (working copy) |
| @@ -662,6 +662,13 @@ |
| static bool InitializeAndSetTrackingStatus(bool status); |
| static bool tracking_status(); |
| + // Special versions of Now() for getting times at start and end of a tracked |
| + // run. They are super fast when tracking is disabled, and have some interal |
|
ramant (doing other things)
2011/11/14 04:41:58
nit: interal -> internal
jar (doing other things)
2011/11/14 05:04:50
Done.
|
| + // side effects when we are tracking, so that we can deduce the amount of time |
| + // accumulated outside of execution of tracked runs. |
| + static TrackedTime NowForStartOfRun(); |
| + static TrackedTime NowForEndOfRun(); |
| + |
| // Provide a time function that does nothing (runs fast) when we don't have |
| // the profiler enabled. It will generally be optimized away when it is |
| // ifdef'ed to be small enough (allowing the profiler to be "compiled out" of |