| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.instrumentation; | 8 library engine.instrumentation; |
| 9 | 9 |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 * Set the logger that should receive instrumentation information to the given
logger. | 95 * Set the logger that should receive instrumentation information to the given
logger. |
| 96 * | 96 * |
| 97 * @param logger the logger that should receive instrumentation information | 97 * @param logger the logger that should receive instrumentation information |
| 98 */ | 98 */ |
| 99 static void set logger(InstrumentationLogger logger) { | 99 static void set logger(InstrumentationLogger logger) { |
| 100 _CURRENT_LOGGER = logger == null ? _NULL_LOGGER : logger; | 100 _CURRENT_LOGGER = logger == null ? _NULL_LOGGER : logger; |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 class InstrumentationBuilder_Instrumentation_NULL_INSTRUMENTATION_BUILDER implem
ents InstrumentationBuilder { | 104 class InstrumentationBuilder_Instrumentation_NULL_INSTRUMENTATION_BUILDER implem
ents InstrumentationBuilder { |
| 105 @override |
| 105 InstrumentationBuilder data(String name, bool value) => this; | 106 InstrumentationBuilder data(String name, bool value) => this; |
| 106 | 107 |
| 108 @override |
| 107 InstrumentationBuilder data2(String name, int value) => this; | 109 InstrumentationBuilder data2(String name, int value) => this; |
| 108 | 110 |
| 111 @override |
| 109 InstrumentationBuilder data3(String name, String value) => this; | 112 InstrumentationBuilder data3(String name, String value) => this; |
| 110 | 113 |
| 114 @override |
| 111 InstrumentationBuilder data4(String name, List<String> value) => this; | 115 InstrumentationBuilder data4(String name, List<String> value) => this; |
| 112 | 116 |
| 117 @override |
| 113 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF; | 118 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF; |
| 114 | 119 |
| 120 @override |
| 115 void log() { | 121 void log() { |
| 116 } | 122 } |
| 117 | 123 |
| 124 @override |
| 118 void log2(int minTimeToLong) { | 125 void log2(int minTimeToLong) { |
| 119 } | 126 } |
| 120 | 127 |
| 128 @override |
| 121 InstrumentationBuilder metric(String name, bool value) => this; | 129 InstrumentationBuilder metric(String name, bool value) => this; |
| 122 | 130 |
| 131 @override |
| 123 InstrumentationBuilder metric2(String name, int value) => this; | 132 InstrumentationBuilder metric2(String name, int value) => this; |
| 124 | 133 |
| 134 @override |
| 125 InstrumentationBuilder metric3(String name, String value) => this; | 135 InstrumentationBuilder metric3(String name, String value) => this; |
| 126 | 136 |
| 137 @override |
| 127 InstrumentationBuilder metric4(String name, List<String> value) => this; | 138 InstrumentationBuilder metric4(String name, List<String> value) => this; |
| 128 | 139 |
| 140 @override |
| 129 InstrumentationBuilder record(Exception exception) => this; | 141 InstrumentationBuilder record(Exception exception) => this; |
| 130 } | 142 } |
| 131 | 143 |
| 132 class InstrumentationLogger_Instrumentation_NULL_LOGGER implements Instrumentati
onLogger { | 144 class InstrumentationLogger_Instrumentation_NULL_LOGGER implements Instrumentati
onLogger { |
| 145 @override |
| 133 InstrumentationBuilder createBuilder(String name) => Instrumentation._NULL_INS
TRUMENTATION_BUILDER; | 146 InstrumentationBuilder createBuilder(String name) => Instrumentation._NULL_INS
TRUMENTATION_BUILDER; |
| 134 } | 147 } |
| 135 | 148 |
| 136 /** | 149 /** |
| 137 * The interface `InstrumentationBuilder` defines the behavior of objects used t
o collect data | 150 * The interface `InstrumentationBuilder` defines the behavior of objects used t
o collect data |
| 138 * about an operation that has occurred and record that data through an instrume
ntation logger. | 151 * about an operation that has occurred and record that data through an instrume
ntation logger. |
| 139 * | 152 * |
| 140 * For an example of using objects that implement this interface, see [Instrumen
tation]. | 153 * For an example of using objects that implement this interface, see [Instrumen
tation]. |
| 141 */ | 154 */ |
| 142 abstract class InstrumentationBuilder { | 155 abstract class InstrumentationBuilder { |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 abstract class InstrumentationLogger { | 319 abstract class InstrumentationLogger { |
| 307 /** | 320 /** |
| 308 * Create a builder that can collect the data associated with an operation ide
ntified by the given | 321 * Create a builder that can collect the data associated with an operation ide
ntified by the given |
| 309 * name. | 322 * name. |
| 310 * | 323 * |
| 311 * @param name the name used to uniquely identify the operation | 324 * @param name the name used to uniquely identify the operation |
| 312 * @return the builder that was created | 325 * @return the builder that was created |
| 313 */ | 326 */ |
| 314 InstrumentationBuilder createBuilder(String name); | 327 InstrumentationBuilder createBuilder(String name); |
| 315 } | 328 } |
| OLD | NEW |