Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: pkg/analyzer-experimental/lib/src/generated/instrumentation.dart

Issue 12253009: Fresh drop of analyzer-experimental. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 3
4 library engine.instrumentation; 4 library engine.instrumentation;
5 5
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 7
8 /** 8 /**
9 * The interface {@code OperationBuilder} defines the behavior of objects used t o collect data about 9 * The interface {@code OperationBuilder} defines the behavior of objects used t o collect data about
10 * an operation that has occurred and record that data through an instrumentatio n logger. 10 * an operation that has occurred and record that data through an instrumentatio n logger.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 * took {@code endTime - startTime} milliseconds to run. The {@code with} method attaches additional 109 * took {@code endTime - startTime} milliseconds to run. The {@code with} method attaches additional
110 * data to the operation; in this case recording that the file was {@code fileLe ngth} characters 110 * data to the operation; in this case recording that the file was {@code fileLe ngth} characters
111 * long. The {@code log} method tells the builder that all of the data has been collected and that 111 * long. The {@code log} method tells the builder that all of the data has been collected and that
112 * the resulting information should be logged. 112 * the resulting information should be logged.
113 */ 113 */
114 class Instrumentation { 114 class Instrumentation {
115 /** 115 /**
116 * An instrumentation logger that can be used when no other instrumentation lo gger has been 116 * An instrumentation logger that can be used when no other instrumentation lo gger has been
117 * configured. This logger will silently ignore all data and logging requests. 117 * configured. This logger will silently ignore all data and logging requests.
118 */ 118 */
119 static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_2(); 119 static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_5();
120 /** 120 /**
121 * The current instrumentation logger. 121 * The current instrumentation logger.
122 */ 122 */
123 static InstrumentationLogger _CURRENT_LOGGER = _NULL_LOGGER; 123 static InstrumentationLogger _CURRENT_LOGGER = _NULL_LOGGER;
124 /** 124 /**
125 * Create an operation builder that can collect the data associated with an op eration. The 125 * Create an operation builder that can collect the data associated with an op eration. The
126 * operation is identified by the given name and is declared to contain only m etrics data (data 126 * operation is identified by the given name and is declared to contain only m etrics data (data
127 * that is not user identifiable and does not contain user intellectual proper ty). 127 * that is not user identifiable and does not contain user intellectual proper ty).
128 * @param name the name used to uniquely identify the operation 128 * @param name the name used to uniquely identify the operation
129 * @return the operation builder that was created 129 * @return the operation builder that was created
(...skipping 25 matching lines...) Expand all
155 * contain either), and took the given amount of time to complete. 155 * contain either), and took the given amount of time to complete.
156 * @param name the name used to uniquely identify the operation 156 * @param name the name used to uniquely identify the operation
157 * @param time the number of milliseconds required to perform the operation 157 * @param time the number of milliseconds required to perform the operation
158 * @return the operation builder that was created 158 * @return the operation builder that was created
159 */ 159 */
160 static OperationBuilder operation2(String name, int time) => _CURRENT_LOGGER.c reateOperation(name, time); 160 static OperationBuilder operation2(String name, int time) => _CURRENT_LOGGER.c reateOperation(name, time);
161 /** 161 /**
162 * Set the logger that should receive instrumentation information to the given logger. 162 * Set the logger that should receive instrumentation information to the given logger.
163 * @param logger the logger that should receive instrumentation information 163 * @param logger the logger that should receive instrumentation information
164 */ 164 */
165 static void set logger(InstrumentationLogger logger) { 165 static void set logger(InstrumentationLogger logger3) {
166 _CURRENT_LOGGER = logger == null ? Instrumentation._NULL_LOGGER : logger; 166 _CURRENT_LOGGER = logger3 == null ? _NULL_LOGGER : logger3;
167 } 167 }
168 /** 168 /**
169 * Prevent the creation of instances of this class 169 * Prevent the creation of instances of this class
170 */ 170 */
171 Instrumentation() { 171 Instrumentation() {
172 } 172 }
173 } 173 }
174 class InstrumentationLogger_2 implements InstrumentationLogger { 174 class InstrumentationLogger_5 implements InstrumentationLogger {
175 /** 175 /**
176 * An operation builder that will silently ignore all data and logging request s. 176 * An operation builder that will silently ignore all data and logging request s.
177 */ 177 */
178 OperationBuilder _NULL_BUILDER = new OperationBuilder_3(); 178 OperationBuilder _NULL_BUILDER = new OperationBuilder_6();
179 OperationBuilder createMetric(String name, int time) => _NULL_BUILDER; 179 OperationBuilder createMetric(String name, int time) => _NULL_BUILDER;
180 OperationBuilder createOperation(String name, int time) => _NULL_BUILDER; 180 OperationBuilder createOperation(String name, int time) => _NULL_BUILDER;
181 } 181 }
182 class OperationBuilder_3 implements OperationBuilder { 182 class OperationBuilder_6 implements OperationBuilder {
183 void log() { 183 void log() {
184 } 184 }
185 OperationBuilder with2(String name, AsyncValue valueGenerator) => this; 185 OperationBuilder with2(String name, AsyncValue valueGenerator) => this;
186 OperationBuilder with3(String name, int value) => this; 186 OperationBuilder with3(String name, int value) => this;
187 OperationBuilder with4(String name, String value) => this; 187 OperationBuilder with4(String name, String value) => this;
188 OperationBuilder with5(String name, List<String> value) => this; 188 OperationBuilder with5(String name, List<String> value) => this;
189 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698