OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 #if !defined(PRODUCT) |
| 6 |
5 #include "vm/metrics.h" | 7 #include "vm/metrics.h" |
6 | 8 |
7 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
8 #include "vm/json_stream.h" | 10 #include "vm/json_stream.h" |
9 #include "vm/log.h" | 11 #include "vm/log.h" |
10 #include "vm/native_entry.h" | 12 #include "vm/native_entry.h" |
11 #include "vm/object.h" | 13 #include "vm/object.h" |
12 #include "vm/runtime_entry.h" | 14 #include "vm/runtime_entry.h" |
13 | 15 |
14 namespace dart { | 16 namespace dart { |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 set_value(kMaxInt64); | 333 set_value(kMaxInt64); |
332 } | 334 } |
333 | 335 |
334 void MinMetric::SetValue(int64_t new_value) { | 336 void MinMetric::SetValue(int64_t new_value) { |
335 if (new_value < value()) { | 337 if (new_value < value()) { |
336 set_value(new_value); | 338 set_value(new_value); |
337 } | 339 } |
338 } | 340 } |
339 | 341 |
340 } // namespace dart | 342 } // namespace dart |
| 343 |
| 344 #endif // !defined(PRODUCT) |
OLD | NEW |