| 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 | 10 * operations, such as tokenizing source code. The information to be logged is g
athered by |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 return InstrumentationLevel.EVERYTHING; | 266 return InstrumentationLevel.EVERYTHING; |
| 267 } | 267 } |
| 268 if (str == "METRICS") { | 268 if (str == "METRICS") { |
| 269 return InstrumentationLevel.METRICS; | 269 return InstrumentationLevel.METRICS; |
| 270 } | 270 } |
| 271 if (str == "OFF") { | 271 if (str == "OFF") { |
| 272 return InstrumentationLevel.OFF; | 272 return InstrumentationLevel.OFF; |
| 273 } | 273 } |
| 274 throw new IllegalArgumentException("Unrecognised InstrumentationLevel"); | 274 throw new IllegalArgumentException("Unrecognised InstrumentationLevel"); |
| 275 } | 275 } |
| 276 InstrumentationLevel(this.name, this.ordinal) { | 276 InstrumentationLevel(this.name, this.ordinal); |
| 277 } | |
| 278 int compareTo(InstrumentationLevel other) => ordinal - other.ordinal; | 277 int compareTo(InstrumentationLevel other) => ordinal - other.ordinal; |
| 279 int get hashCode => ordinal; | 278 int get hashCode => ordinal; |
| 280 String toString() => name; | 279 String toString() => name; |
| 281 } | 280 } |
| 282 /** | 281 /** |
| 283 * The interface `InstrumentationLogger` defines the behavior of objects that ar
e used to log | 282 * The interface `InstrumentationLogger` defines the behavior of objects that ar
e used to log |
| 284 * instrumentation data. | 283 * instrumentation data. |
| 285 * | 284 * |
| 286 * For an example of using objects that implement this interface, see [Instrumen
tation]. | 285 * For an example of using objects that implement this interface, see [Instrumen
tation]. |
| 287 * | 286 * |
| 288 * @coverage dart.engine.utilities | 287 * @coverage dart.engine.utilities |
| 289 */ | 288 */ |
| 290 abstract class InstrumentationLogger { | 289 abstract class InstrumentationLogger { |
| 291 | 290 |
| 292 /** | 291 /** |
| 293 * Create a builder that can collect the data associated with an operation ide
ntified by the given | 292 * Create a builder that can collect the data associated with an operation ide
ntified by the given |
| 294 * name. | 293 * name. |
| 295 * | 294 * |
| 296 * @param name the name used to uniquely identify the operation | 295 * @param name the name used to uniquely identify the operation |
| 297 * @return the builder that was created | 296 * @return the builder that was created |
| 298 */ | 297 */ |
| 299 InstrumentationBuilder createBuilder(String name); | 298 InstrumentationBuilder createBuilder(String name); |
| 300 } | 299 } |
| OLD | NEW |