OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 14 matching lines...) Expand all Loading... |
25 */ | 25 */ |
26 public class DartCoreDebug { | 26 public class DartCoreDebug { |
27 | 27 |
28 // Debugging / Tracing options | 28 // Debugging / Tracing options |
29 | 29 |
30 public static final boolean DEBUG_INDEX_CONTRIBUTOR = isOptionTrue("debug/inde
x/contributor"); | 30 public static final boolean DEBUG_INDEX_CONTRIBUTOR = isOptionTrue("debug/inde
x/contributor"); |
31 public static final boolean METRICS = isOptionTrue("debug/metrics"); | 31 public static final boolean METRICS = isOptionTrue("debug/metrics"); |
32 public static final boolean WARMUP = isOptionTrue("debug/warmup"); | 32 public static final boolean WARMUP = isOptionTrue("debug/warmup"); |
33 public static final boolean VERBOSE = isOptionTrue("debug/verbose"); | 33 public static final boolean VERBOSE = isOptionTrue("debug/verbose"); |
34 public static final boolean LOGGING_DEBUGGER = isOptionTrue("logging/debugger"
); | 34 public static final boolean LOGGING_DEBUGGER = isOptionTrue("logging/debugger"
); |
| 35 public static final boolean ENABLE_CHROME_APP_LAUNCH_CONFIG = isOptionTrue("la
unch/chromeApp"); |
35 | 36 |
36 public static final boolean TRACE_ARTIFACT_PROVIDER = isOptionTrue("trace/arti
factProvider"); | 37 public static final boolean TRACE_ARTIFACT_PROVIDER = isOptionTrue("trace/arti
factProvider"); |
37 public static final boolean TRACE_INDEX_CONTRIBUTOR = isOptionTrue("trace/inde
x/contributor"); | 38 public static final boolean TRACE_INDEX_CONTRIBUTOR = isOptionTrue("trace/inde
x/contributor"); |
38 public static final boolean TRACE_INDEX_PROCESSOR = isOptionTrue("trace/index/
processor"); | 39 public static final boolean TRACE_INDEX_PROCESSOR = isOptionTrue("trace/index/
processor"); |
39 public static final boolean TRACE_INDEX_STATISTICS = isOptionTrue("trace/index
/statistics"); | 40 public static final boolean TRACE_INDEX_STATISTICS = isOptionTrue("trace/index
/statistics"); |
40 public static final boolean TRACE_UPDATE = isOptionTrue("trace/update"); | 41 public static final boolean TRACE_UPDATE = isOptionTrue("trace/update"); |
41 | 42 |
42 public static final boolean ENABLE_CONTENT_ASSIST_TIMING = isOptionTrue("debug
/ResultCollector"); | 43 public static final boolean ENABLE_CONTENT_ASSIST_TIMING = isOptionTrue("debug
/ResultCollector"); |
43 | 44 |
44 // Performance measurement and reporting options. | 45 // Performance measurement and reporting options. |
45 | 46 |
46 public static final boolean PERF_TIMER = isOptionTrue("perf/timer"); | 47 public static final boolean PERF_TIMER = isOptionTrue("perf/timer"); |
47 public static final boolean PERF_INDEX = isOptionTrue("perf/index"); | 48 public static final boolean PERF_INDEX = isOptionTrue("perf/index"); |
48 public static final boolean PERF_OS_RESOURCES = isOptionTrue("perf/osResources
"); | 49 public static final boolean PERF_OS_RESOURCES = isOptionTrue("perf/osResources
"); |
49 public static final boolean PERF_THREAD_CONTENTION_MONIOR = isOptionTrue("perf
/threadContentionMonitor"); | 50 public static final boolean PERF_THREAD_CONTENTION_MONIOR = isOptionTrue("perf
/threadContentionMonitor"); |
50 | 51 |
51 // Experimental functionality options. | 52 // Experimental functionality options. |
52 | 53 |
53 public static final boolean EXPERIMENTAL = isOptionTrue("experimental") | 54 public static final boolean EXPERIMENTAL = isOptionTrue("experimental") |
54 || CmdLineOptions.getOptions().getExperimental(); | 55 || CmdLineOptions.getOptions().getExperimental(); |
55 | 56 |
56 public static final boolean ENABLE_ALT_KEY_BINDINGS = isOptionTrue("experiment
al/altKeyBindings"); | 57 public static final boolean ENABLE_ALT_KEY_BINDINGS = isOptionTrue("experiment
al/altKeyBindings"); |
57 public static final boolean ENABLE_TESTS_VIEW = isOptionTrue("experimental/tes
tsView"); | 58 public static final boolean ENABLE_TESTS_VIEW = isOptionTrue("experimental/tes
tsView"); |
58 public static final boolean ENABLE_FORMATTER = isOptionTrue("experimental/form
atter"); | 59 public static final boolean ENABLE_FORMATTER = isOptionTrue("experimental/form
atter"); |
59 public static final boolean ENABLE_THEMES = true; //isOptionTrue("experimental
/themes"); | 60 public static final boolean ENABLE_THEMES = true; //isOptionTrue("experimental
/themes"); |
60 public static final boolean ENABLE_TAB_COLORING = isOptionTrue("experimental/t
abColors"); | 61 public static final boolean ENABLE_TAB_COLORING = isOptionTrue("experimental/t
abColors"); |
61 public static final boolean ENABLE_HTML_VALIDATION = isOptionTrue("experimenta
l/validateHtml"); | 62 public static final boolean ENABLE_HTML_VALIDATION = isOptionTrue("experimenta
l/validateHtml"); |
| 63 public static final boolean ENABLE_PUB_SERVE_LAUNCH = isOptionTrue("experiment
al/pubserve"); |
62 | 64 |
63 // Verify that dartc has not been specified and that the new analyzer is not e
xplicitly disabled | 65 // Verify that dartc has not been specified and that the new analyzer is not e
xplicitly disabled |
64 public static final boolean ENABLE_NEW_ANALYSIS = true; | 66 public static final boolean ENABLE_NEW_ANALYSIS = true; |
65 //!isOptionTrue("experimental/analysis/useDartc") | 67 //!isOptionTrue("experimental/analysis/useDartc") |
66 //&& !"false".equals(DartCore.getUserDefinedProperty(ENABLE_NEW_ANALYSIS_USER_
FLAG)); | 68 //&& !"false".equals(DartCore.getUserDefinedProperty(ENABLE_NEW_ANALYSIS_USER_
FLAG)); |
67 | 69 |
68 // Persistent developer settings | 70 // Persistent developer settings |
69 | 71 |
70 public static final boolean DISABLE_MARK_OCCURRENCES = isOptionTrue("dev/disab
leMarkOccurrences"); | 72 public static final boolean DISABLE_MARK_OCCURRENCES = isOptionTrue("dev/disab
leMarkOccurrences"); |
71 | 73 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 private static boolean isOptionValue(String optionSuffix, String expected) { | 128 private static boolean isOptionValue(String optionSuffix, String expected) { |
127 String option = DartCore.PLUGIN_ID + "/" + optionSuffix; | 129 String option = DartCore.PLUGIN_ID + "/" + optionSuffix; |
128 String value = Platform.getDebugOption(option); | 130 String value = Platform.getDebugOption(option); |
129 if (value == null) { | 131 if (value == null) { |
130 value = DartCore.getUserDefinedProperty(option); | 132 value = DartCore.getUserDefinedProperty(option); |
131 } | 133 } |
132 return StringUtils.equalsIgnoreCase(value, expected); | 134 return StringUtils.equalsIgnoreCase(value, expected); |
133 } | 135 } |
134 | 136 |
135 } | 137 } |
OLD | NEW |