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

Side by Side Diff: runtime/vm/timeline_analysis.cc

Issue 1678203002: Remove more feature in product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/timeline.cc ('k') | tests/standalone/no_profiler_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/vm/timeline.cc ('k') | tests/standalone/no_profiler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698