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

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

Issue 311413002: Changes for running tests on arm64 hardware. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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/utils.h" 5 #include "platform/utils.h"
6 6
7 #include "vm/allocation.h" 7 #include "vm/allocation.h"
8 #include "vm/atomic.h" 8 #include "vm/atomic.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
11 #include "vm/json_stream.h" 11 #include "vm/json_stream.h"
12 #include "vm/native_symbol.h" 12 #include "vm/native_symbol.h"
13 #include "vm/object.h" 13 #include "vm/object.h"
14 #include "vm/os.h" 14 #include "vm/os.h"
15 #include "vm/profiler.h" 15 #include "vm/profiler.h"
16 #include "vm/reusable_handles.h" 16 #include "vm/reusable_handles.h"
17 #include "vm/signal_handler.h" 17 #include "vm/signal_handler.h"
18 #include "vm/simulator.h" 18 #include "vm/simulator.h"
19 #include "vm/stack_frame.h" 19 #include "vm/stack_frame.h"
20 20
21 namespace dart { 21 namespace dart {
22 22
23 23
24 #if defined(USING_SIMULATOR) || defined(TARGET_OS_ANDROID) 24 #if defined(USING_SIMULATOR) || defined(TARGET_OS_ANDROID) || \
25 defined(HOST_ARCH_ARM64)
25 DEFINE_FLAG(bool, profile, false, "Enable Sampling Profiler"); 26 DEFINE_FLAG(bool, profile, false, "Enable Sampling Profiler");
26 #else 27 #else
27 DEFINE_FLAG(bool, profile, true, "Enable Sampling Profiler"); 28 DEFINE_FLAG(bool, profile, true, "Enable Sampling Profiler");
28 #endif 29 #endif
29 DEFINE_FLAG(bool, trace_profiled_isolates, false, "Trace profiled isolates."); 30 DEFINE_FLAG(bool, trace_profiled_isolates, false, "Trace profiled isolates.");
30 DEFINE_FLAG(charp, profile_dir, NULL, 31 DEFINE_FLAG(charp, profile_dir, NULL,
31 "Enable writing profile data into specified directory."); 32 "Enable writing profile data into specified directory.");
32 DEFINE_FLAG(int, profile_period, 1000, 33 DEFINE_FLAG(int, profile_period, 1000,
33 "Time between profiler samples in microseconds. Minimum 50."); 34 "Time between profiler samples in microseconds. Minimum 50.");
34 DEFINE_FLAG(int, profile_depth, 8, 35 DEFINE_FLAG(int, profile_depth, 8,
(...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 ProfilerDartStackWalker stackWalker(sample); 1862 ProfilerDartStackWalker stackWalker(sample);
1862 stackWalker.walk(); 1863 stackWalker.walk();
1863 } else { 1864 } else {
1864 // TODO(johnmccutchan): Support collecting only Dart frames with 1865 // TODO(johnmccutchan): Support collecting only Dart frames with
1865 // ProfilerNativeStackWalker. 1866 // ProfilerNativeStackWalker.
1866 } 1867 }
1867 } 1868 }
1868 } 1869 }
1869 1870
1870 } // namespace dart 1871 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698