| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine.instrumentation; | 3 library engine.instrumentation; |
| 4 import 'java_core.dart'; | 4 import 'java_core.dart'; |
| 5 /** | 5 /** |
| 6 * The class `Instrumentation` implements support for logging instrumentation in
formation. | 6 * The class `Instrumentation` implements support for logging instrumentation in
formation. |
| 7 * | 7 * |
| 8 * Instrumentation information consists of information about specific operations
. Those operations | 8 * Instrumentation information consists of information about specific operations
. Those operations |
| 9 * can range from user-facing operations, such as saving the changes to a file,
to internal | 9 * can range from user-facing operations, such as saving the changes to a file,
to internal |
| 10 * operations, such as tokenizing source code. The information to be logged is g
athered by[InstrumentationBuilder instrumentation builder], created by one of th
e static methods on | 10 * operations, such as tokenizing source code. The information to be logged is g
athered by[InstrumentationBuilder instrumentation builder], created by one of th
e static methods on |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 * Return a builder that will silently ignore all data and logging requests. | 68 * Return a builder that will silently ignore all data and logging requests. |
| 69 * @return the builder (not `null`) | 69 * @return the builder (not `null`) |
| 70 */ | 70 */ |
| 71 static InstrumentationBuilder get nullBuilder => _NULL_INSTRUMENTATION_BUILDER
; | 71 static InstrumentationBuilder get nullBuilder => _NULL_INSTRUMENTATION_BUILDER
; |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * Is this instrumentation system currently configured to drop instrumentation
data provided to | 74 * Is this instrumentation system currently configured to drop instrumentation
data provided to |
| 75 * it? | 75 * it? |
| 76 * @return | 76 * @return |
| 77 */ | 77 */ |
| 78 static bool isNullLogger() => identical(_CURRENT_LOGGER, _NULL_LOGGER); | 78 static bool get isNullLogger => identical(_CURRENT_LOGGER, _NULL_LOGGER); |
| 79 | 79 |
| 80 /** | 80 /** |
| 81 * Set the logger that should receive instrumentation information to the given
logger. | 81 * Set the logger that should receive instrumentation information to the given
logger. |
| 82 * @param logger the logger that should receive instrumentation information | 82 * @param logger the logger that should receive instrumentation information |
| 83 */ | 83 */ |
| 84 static void set logger(InstrumentationLogger logger2) { | 84 static void set logger(InstrumentationLogger logger2) { |
| 85 _CURRENT_LOGGER = logger2 == null ? _NULL_LOGGER : logger2; | 85 _CURRENT_LOGGER = logger2 == null ? _NULL_LOGGER : logger2; |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 class InstrumentationBuilder_12 implements InstrumentationBuilder { | 88 class InstrumentationBuilder_12 implements InstrumentationBuilder { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 abstract class InstrumentationLogger { | 270 abstract class InstrumentationLogger { |
| 271 | 271 |
| 272 /** | 272 /** |
| 273 * Create a builder that can collect the data associated with an operation ide
ntified by the given | 273 * Create a builder that can collect the data associated with an operation ide
ntified by the given |
| 274 * name. | 274 * name. |
| 275 * @param name the name used to uniquely identify the operation | 275 * @param name the name used to uniquely identify the operation |
| 276 * @return the builder that was created | 276 * @return the builder that was created |
| 277 */ | 277 */ |
| 278 InstrumentationBuilder createBuilder(String name); | 278 InstrumentationBuilder createBuilder(String name); |
| 279 } | 279 } |
| OLD | NEW |