| Index: runtime/vm/timer.h
|
| diff --git a/runtime/vm/timer.h b/runtime/vm/timer.h
|
| index 7d3252248dbb18aeac0c6f13b32e8fcaaae9e940..1cf28c92d9eb6d62bb0f4bfbdbda40be533f3e79 100644
|
| --- a/runtime/vm/timer.h
|
| +++ b/runtime/vm/timer.h
|
| @@ -16,8 +16,7 @@ namespace dart {
|
| // Timer class allows timing of specific operations in the VM.
|
| class Timer : public ValueObject {
|
| public:
|
| - Timer(bool report, const char* message)
|
| - : report_(report), message_(message) {
|
| + Timer(bool report, const char* message) : report_(report), message_(message) {
|
| Reset();
|
| }
|
| ~Timer() {}
|
| @@ -69,7 +68,7 @@ class Timer : public ValueObject {
|
|
|
| bool IsReset() const {
|
| return (start_ == 0) && (stop_ == 0) && (total_ == 0) &&
|
| - (max_contiguous_ == 0) && !running_;
|
| + (max_contiguous_ == 0) && !running_;
|
| }
|
|
|
| void AddTotal(const Timer& other) {
|
| @@ -111,9 +110,7 @@ class Timer : public ValueObject {
|
| class TimerScope : public StackResource {
|
| public:
|
| TimerScope(bool flag, Timer* timer, Thread* thread = NULL)
|
| - : StackResource(thread),
|
| - nested_(false),
|
| - timer_(flag ? timer : NULL) {
|
| + : StackResource(thread), nested_(false), timer_(flag ? timer : NULL) {
|
| Init();
|
| }
|
|
|
| @@ -146,9 +143,7 @@ class TimerScope : public StackResource {
|
| class PauseTimerScope : public StackResource {
|
| public:
|
| PauseTimerScope(bool flag, Timer* timer, Thread* thread = NULL)
|
| - : StackResource(thread),
|
| - nested_(false),
|
| - timer_(flag ? timer : NULL) {
|
| + : StackResource(thread), nested_(false), timer_(flag ? timer : NULL) {
|
| if (timer_) {
|
| if (timer_->running()) {
|
| timer_->Stop();
|
| @@ -174,7 +169,6 @@ class PauseTimerScope : public StackResource {
|
| };
|
|
|
|
|
| -
|
| } // namespace dart
|
|
|
| #endif // RUNTIME_VM_TIMER_H_
|
|
|