| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_OS_LINUX) | 6 #if defined(TARGET_OS_LINUX) |
| 7 | 7 |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 | 9 |
| 10 #include <errno.h> // NOLINT | 10 #include <errno.h> // NOLINT |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Linux CodeObservers. | 34 // Linux CodeObservers. |
| 35 | 35 |
| 36 DEFINE_FLAG(bool, generate_gdb_symbols, false, | 36 DEFINE_FLAG(bool, generate_gdb_symbols, false, |
| 37 "Generate symbols of generated dart functions for debugging with GDB"); | 37 "Generate symbols of generated dart functions for debugging with GDB"); |
| 38 DEFINE_FLAG(bool, generate_perf_events_symbols, false, | 38 DEFINE_FLAG(bool, generate_perf_events_symbols, false, |
| 39 "Generate events symbols for profiling with perf"); | 39 "Generate events symbols for profiling with perf"); |
| 40 DEFINE_FLAG(bool, ll_prof, false, | 40 DEFINE_FLAG(bool, ll_prof, false, |
| 41 "Generate compiled code log file for processing with ll_prof.py."); | 41 "Generate compiled code log file for processing with ll_prof.py."); |
| 42 DEFINE_FLAG(charp, generate_pprof_symbols, NULL, | 42 DEFINE_FLAG(charp, generate_pprof_symbols, NULL, |
| 43 "Writes pprof events symbols to the provided file"); | 43 "Writes pprof events symbols to the provided file"); |
| 44 DEFINE_FLAG(bool, generate_perf_jitdump, true, | 44 DEFINE_FLAG(bool, generate_perf_jitdump, false, |
| 45 "Writes jitdump data for profiling with perf annotate"); | 45 "Writes jitdump data for profiling with perf annotate"); |
| 46 | 46 |
| 47 class LowLevelProfileCodeObserver : public CodeObserver { | 47 class LowLevelProfileCodeObserver : public CodeObserver { |
| 48 public: | 48 public: |
| 49 LowLevelProfileCodeObserver() { | 49 LowLevelProfileCodeObserver() { |
| 50 Dart_FileOpenCallback file_open = Isolate::file_open_callback(); | 50 Dart_FileOpenCallback file_open = Isolate::file_open_callback(); |
| 51 if (file_open == NULL) { | 51 if (file_open == NULL) { |
| 52 return; | 52 return; |
| 53 } | 53 } |
| 54 const char* filename = "v8.log.ll"; | 54 const char* filename = "v8.log.ll"; |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 } | 769 } |
| 770 | 770 |
| 771 | 771 |
| 772 void OS::Exit(int code) { | 772 void OS::Exit(int code) { |
| 773 exit(code); | 773 exit(code); |
| 774 } | 774 } |
| 775 | 775 |
| 776 } // namespace dart | 776 } // namespace dart |
| 777 | 777 |
| 778 #endif // defined(TARGET_OS_LINUX) | 778 #endif // defined(TARGET_OS_LINUX) |
| OLD | NEW |