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

Side by Side Diff: runtime/vm/flag_list.h

Issue 2700033003: Disabled MallocHooks code in Release due to performance concerns. Added enable_malloc_hooks flag to… (Closed)
Patch Set: Disabled MallocHooks code in Release due to performance concerns. Added enable_malloc_hooks flag to… Created 3 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 | « no previous file | runtime/vm/malloc_hooks.cc » ('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) 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 #ifndef RUNTIME_VM_FLAG_LIST_H_ 5 #ifndef RUNTIME_VM_FLAG_LIST_H_
6 #define RUNTIME_VM_FLAG_LIST_H_ 6 #define RUNTIME_VM_FLAG_LIST_H_
7 7
8 // Don't use USING_DBC outside of this file. 8 // Don't use USING_DBC outside of this file.
9 #if defined(TARGET_ARCH_DBC) 9 #if defined(TARGET_ARCH_DBC)
10 #define USING_DBC true 10 #define USING_DBC true
11 #else 11 #else
12 #define USING_DBC false 12 #define USING_DBC false
13 #endif 13 #endif
14 14
15 #if defined(TARGET_OS_FUCHSIA) 15 #if defined(TARGET_OS_FUCHSIA)
16 #define USING_FUCHSIA true 16 #define USING_FUCHSIA true
17 #else 17 #else
18 #define USING_FUCHSIA false 18 #define USING_FUCHSIA false
19 #endif 19 #endif
20 20
21 // Don't use USING_MULTICORE outside of this file. 21 // Don't use USING_MULTICORE outside of this file.
22 #if defined(ARCH_IS_MULTI_CORE) 22 #if defined(ARCH_IS_MULTI_CORE)
23 #define USING_MULTICORE true 23 #define USING_MULTICORE true
24 #else 24 #else
25 #define USING_MULTICORE false 25 #define USING_MULTICORE false
26 #endif 26 #endif
27 27
28 #if defined(DEBUG)
29 #define USING_DEBUG true
30 #else
31 #define USING_DEBUG false
32 #endif
33
28 // List of all flags in the VM. 34 // List of all flags in the VM.
29 // Flags can be one of three categories: 35 // Flags can be one of three categories:
30 // * P roduct flags: Can be set in any of the deployment modes, including in 36 // * P roduct flags: Can be set in any of the deployment modes, including in
31 // production. 37 // production.
32 // * R elease flags: Generally available flags except when building product. 38 // * R elease flags: Generally available flags except when building product.
33 // * D ebug flags: Can only be set in debug VMs, which also have C++ assertions 39 // * D ebug flags: Can only be set in debug VMs, which also have C++ assertions
34 // enabled. 40 // enabled.
35 // * pre C ompile flags: Generally available flags except when building product 41 // * pre C ompile flags: Generally available flags except when building product
36 // or precompiled runtime. 42 // or precompiled runtime.
37 // 43 //
(...skipping 23 matching lines...) Expand all
61 "Deoptimizes we are about to return to Dart code from native entries.") \ 67 "Deoptimizes we are about to return to Dart code from native entries.") \
62 C(deoptimize_every, 0, 0, int, 0, \ 68 C(deoptimize_every, 0, 0, int, 0, \
63 "Deoptimize on every N stack overflow checks") \ 69 "Deoptimize on every N stack overflow checks") \
64 R(disable_alloc_stubs_after_gc, false, bool, false, "Stress testing flag.") \ 70 R(disable_alloc_stubs_after_gc, false, bool, false, "Stress testing flag.") \
65 R(disassemble, false, bool, false, "Disassemble dart code.") \ 71 R(disassemble, false, bool, false, "Disassemble dart code.") \
66 R(disassemble_optimized, false, bool, false, "Disassemble optimized code.") \ 72 R(disassemble_optimized, false, bool, false, "Disassemble optimized code.") \
67 R(dump_megamorphic_stats, false, bool, false, \ 73 R(dump_megamorphic_stats, false, bool, false, \
68 "Dump megamorphic cache statistics") \ 74 "Dump megamorphic cache statistics") \
69 R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \ 75 R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \
70 R(enable_asserts, false, bool, false, "Enable assert statements.") \ 76 R(enable_asserts, false, bool, false, "Enable assert statements.") \
77 R(enable_malloc_hooks, false, bool, USING_DEBUG, \
78 "Enable native memory statistic collection. Enabled by default in Debug " \
79 "mode") \
71 C(enable_mirrors, false, false, bool, true, \ 80 C(enable_mirrors, false, false, bool, true, \
72 "Disable to make importing dart:mirrors an error.") \ 81 "Disable to make importing dart:mirrors an error.") \
73 R(enable_type_checks, false, bool, false, "Enable type checks.") \ 82 R(enable_type_checks, false, bool, false, "Enable type checks.") \
74 R(error_on_bad_override, false, bool, false, \ 83 R(error_on_bad_override, false, bool, false, \
75 "Report error for bad overrides.") \ 84 "Report error for bad overrides.") \
76 R(error_on_bad_type, false, bool, false, \ 85 R(error_on_bad_type, false, bool, false, \
77 "Report error for malformed types.") \ 86 "Report error for malformed types.") \
78 P(external_max_size, int, (kWordSize <= 4) ? 512 : 1024, \ 87 P(external_max_size, int, (kWordSize <= 4) ? 512 : 1024, \
79 "Max total size of external allocations in MB, or 0 for unlimited," \ 88 "Max total size of external allocations in MB, or 0 for unlimited," \
80 "e.g: --external_max_size=1024 allows up to 1024MB of externals") \ 89 "e.g: --external_max_size=1024 allows up to 1024MB of externals") \
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ 171 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \
163 R(verify_after_gc, false, bool, false, \ 172 R(verify_after_gc, false, bool, false, \
164 "Enables heap verification after GC.") \ 173 "Enables heap verification after GC.") \
165 R(verify_before_gc, false, bool, false, \ 174 R(verify_before_gc, false, bool, false, \
166 "Enables heap verification before GC.") \ 175 "Enables heap verification before GC.") \
167 D(verify_gc_contains, bool, false, \ 176 D(verify_gc_contains, bool, false, \
168 "Enables verification of address contains during GC.") \ 177 "Enables verification of address contains during GC.") \
169 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") 178 D(verify_on_transition, bool, false, "Verify on dart <==> VM.")
170 179
171 #endif // RUNTIME_VM_FLAG_LIST_H_ 180 #endif // RUNTIME_VM_FLAG_LIST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/malloc_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698