| Index: base/profiler/scoped_profile.h
|
| diff --git a/base/profiler/scoped_profile.h b/base/profiler/scoped_profile.h
|
| index 7290908c5ce9e2f456c8f73aaa1344ec83bd07be..6a76486518f10b5f82211b1ffeac240a13998257 100644
|
| --- a/base/profiler/scoped_profile.h
|
| +++ b/base/profiler/scoped_profile.h
|
| @@ -35,12 +35,18 @@ class Births;
|
|
|
| class BASE_EXPORT ScopedProfile {
|
| public:
|
| + // Mode of operation. Specifies whether ScopedProfile should be a no-op or
|
| + // needs to create and tally a task.
|
| + enum Mode {
|
| + DISABLED, // Do nothing.
|
| + ENABLED // Create and tally a task.
|
| + };
|
| +
|
| + // TODO(vadimt): Remove this constructor.
|
| explicit ScopedProfile(const Location& location);
|
| + ScopedProfile(const Location& location, Mode mode);
|
| ~ScopedProfile();
|
|
|
| - // Stop tracing prior to the end destruction of the instance.
|
| - void StopClockAndTally();
|
| -
|
| private:
|
| Births* birth_; // Place in code where tracking started.
|
| TaskStopwatch stopwatch_;
|
|
|