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

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

Issue 928833003: Add Function based profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "platform/address_sanitizer.h" 5 #include "platform/address_sanitizer.h"
6 #include "platform/memory_sanitizer.h" 6 #include "platform/memory_sanitizer.h"
7 #include "platform/utils.h" 7 #include "platform/utils.h"
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 12 matching lines...) Expand all
23 23
24 namespace dart { 24 namespace dart {
25 25
26 26
27 #if defined(TARGET_OS_ANDROID) || defined(HOST_ARCH_ARM64) 27 #if defined(TARGET_OS_ANDROID) || defined(HOST_ARCH_ARM64)
28 DEFINE_FLAG(bool, profile, false, "Enable Sampling Profiler"); 28 DEFINE_FLAG(bool, profile, false, "Enable Sampling Profiler");
29 #else 29 #else
30 DEFINE_FLAG(bool, profile, true, "Enable Sampling Profiler"); 30 DEFINE_FLAG(bool, profile, true, "Enable Sampling Profiler");
31 #endif 31 #endif
32 DEFINE_FLAG(bool, trace_profiled_isolates, false, "Trace profiled isolates."); 32 DEFINE_FLAG(bool, trace_profiled_isolates, false, "Trace profiled isolates.");
33 DEFINE_FLAG(bool, trace_profiler, false, "Trace profiler.");
34 DEFINE_FLAG(int, profile_period, 1000, 33 DEFINE_FLAG(int, profile_period, 1000,
35 "Time between profiler samples in microseconds. Minimum 50."); 34 "Time between profiler samples in microseconds. Minimum 50.");
36 DEFINE_FLAG(int, profile_depth, 8, 35 DEFINE_FLAG(int, profile_depth, 8,
37 "Maximum number stack frames walked. Minimum 1. Maximum 255."); 36 "Maximum number stack frames walked. Minimum 1. Maximum 255.");
38 #if defined(PROFILE_NATIVE_CODE) || defined(USING_SIMULATOR) 37 #if defined(PROFILE_NATIVE_CODE) || defined(USING_SIMULATOR)
39 DEFINE_FLAG(bool, profile_vm, true, 38 DEFINE_FLAG(bool, profile_vm, true,
40 "Always collect native stack traces."); 39 "Always collect native stack traces.");
41 #else 40 #else
42 DEFINE_FLAG(bool, profile_vm, false, 41 DEFINE_FLAG(bool, profile_vm, false,
43 "Always collect native stack traces."); 42 "Always collect native stack traces.");
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 state.pc, 728 state.pc,
730 state.fp, 729 state.fp,
731 sp); 730 sp);
732 stackWalker.walk(); 731 stackWalker.walk();
733 #endif 732 #endif
734 } 733 }
735 } 734 }
736 } 735 }
737 736
738 } // namespace dart 737 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698