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

Unified Diff: runtime/vm/timer.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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
« no previous file with comments | « runtime/vm/timeline_test.cc ('k') | runtime/vm/timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « runtime/vm/timeline_test.cc ('k') | runtime/vm/timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698