| 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 {@code Instrumentation} implements support for logging instrumentat
ion information. | 6 * The class {@code Instrumentation} implements support for logging instrumentat
ion information. |
| 7 * <p> | 7 * <p> |
| 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{@link InstrumentationBuilder instrumentation builder}, created by one
of the static methods on | 10 * operations, such as tokenizing source code. The information to be logged is g
athered by{@link InstrumentationBuilder instrumentation builder}, created by one
of the static methods on |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 return InstrumentationLevel.METRICS; | 250 return InstrumentationLevel.METRICS; |
| 251 } | 251 } |
| 252 if (str == "OFF") { | 252 if (str == "OFF") { |
| 253 return InstrumentationLevel.OFF; | 253 return InstrumentationLevel.OFF; |
| 254 } | 254 } |
| 255 throw new IllegalArgumentException("Unrecognised InstrumentationLevel"); | 255 throw new IllegalArgumentException("Unrecognised InstrumentationLevel"); |
| 256 } | 256 } |
| 257 InstrumentationLevel(this.name, this.ordinal) { | 257 InstrumentationLevel(this.name, this.ordinal) { |
| 258 } | 258 } |
| 259 int compareTo(InstrumentationLevel other) => ordinal - other.ordinal; | 259 int compareTo(InstrumentationLevel other) => ordinal - other.ordinal; |
| 260 int get hashCode => ordinal; |
| 260 String toString() => name; | 261 String toString() => name; |
| 261 } | 262 } |
| 262 /** | 263 /** |
| 263 * The interface {@code InstrumentationLogger} defines the behavior of objects t
hat are used to log | 264 * The interface {@code InstrumentationLogger} defines the behavior of objects t
hat are used to log |
| 264 * instrumentation data. | 265 * instrumentation data. |
| 265 * <p> | 266 * <p> |
| 266 * For an example of using objects that implement this interface, see {@link Ins
trumentation}. | 267 * For an example of using objects that implement this interface, see {@link Ins
trumentation}. |
| 267 * @coverage dart.engine.utilities | 268 * @coverage dart.engine.utilities |
| 268 */ | 269 */ |
| 269 abstract class InstrumentationLogger { | 270 abstract class InstrumentationLogger { |
| 270 | 271 |
| 271 /** | 272 /** |
| 272 * 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 |
| 273 * name. | 274 * name. |
| 274 * @param name the name used to uniquely identify the operation | 275 * @param name the name used to uniquely identify the operation |
| 275 * @return the builder that was created | 276 * @return the builder that was created |
| 276 */ | 277 */ |
| 277 InstrumentationBuilder createBuilder(String name); | 278 InstrumentationBuilder createBuilder(String name); |
| 278 } | 279 } |
| OLD | NEW |