OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #include "vm/timeline_analysis.h" | 5 #include "vm/timeline_analysis.h" |
6 | 6 |
7 #include "vm/flags.h" | 7 #include "vm/flags.h" |
8 #include "vm/log.h" | 8 #include "vm/log.h" |
9 #include "vm/os_thread.h" | 9 #include "vm/os_thread.h" |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 | 12 |
| 13 #ifndef PRODUCT |
| 14 |
13 DECLARE_FLAG(bool, trace_timeline_analysis); | 15 DECLARE_FLAG(bool, trace_timeline_analysis); |
14 DECLARE_FLAG(bool, timing); | 16 DECLARE_FLAG(bool, timing); |
15 | 17 |
16 TimelineAnalysisThread::TimelineAnalysisThread(ThreadId id) | 18 TimelineAnalysisThread::TimelineAnalysisThread(ThreadId id) |
17 : id_(id) { | 19 : id_(id) { |
18 } | 20 } |
19 | 21 |
20 | 22 |
21 TimelineAnalysisThread::~TimelineAnalysisThread() { | 23 TimelineAnalysisThread::~TimelineAnalysisThread() { |
22 } | 24 } |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 THR_Print("%.3f ms total on stack; ", | 624 THR_Print("%.3f ms total on stack; ", |
623 MicrosecondsToMilliseconds(pause_info->inclusive_micros())); | 625 MicrosecondsToMilliseconds(pause_info->inclusive_micros())); |
624 THR_Print("%.3f ms total executing; ", | 626 THR_Print("%.3f ms total executing; ", |
625 MicrosecondsToMilliseconds(pause_info->exclusive_micros())); | 627 MicrosecondsToMilliseconds(pause_info->exclusive_micros())); |
626 THR_Print("%.3f ms max on stack; ", | 628 THR_Print("%.3f ms max on stack; ", |
627 MicrosecondsToMilliseconds(pause_info->max_inclusive_micros())); | 629 MicrosecondsToMilliseconds(pause_info->max_inclusive_micros())); |
628 THR_Print("%.3f ms max executing.\n", | 630 THR_Print("%.3f ms max executing.\n", |
629 MicrosecondsToMilliseconds(pause_info->max_exclusive_micros())); | 631 MicrosecondsToMilliseconds(pause_info->max_exclusive_micros())); |
630 } | 632 } |
631 | 633 |
| 634 #endif // !PRODUCT |
| 635 |
632 } // namespace dart | 636 } // namespace dart |
OLD | NEW |