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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/instrumentation.dart

Issue 12604020: analyzer_experimental checkpoint and AnalysisContext example. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't mark Source as 'changed'. Created 7 years, 9 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 class {@code Instrumentation} implements support for logging instrumentat ion information. 9 * The class {@code Instrumentation} implements support for logging instrumentat ion information.
10 * <p> 10 * <p>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 static void set logger(InstrumentationLogger logger3) { 68 static void set logger(InstrumentationLogger logger3) {
69 _CURRENT_LOGGER = logger3 == null ? _NULL_LOGGER : logger3; 69 _CURRENT_LOGGER = logger3 == null ? _NULL_LOGGER : logger3;
70 } 70 }
71 /** 71 /**
72 * Prevent the creation of instances of this class 72 * Prevent the creation of instances of this class
73 */ 73 */
74 Instrumentation() { 74 Instrumentation() {
75 } 75 }
76 } 76 }
77 class InstrumentationBuilder_8 implements InstrumentationBuilder { 77 class InstrumentationBuilder_8 implements InstrumentationBuilder {
78 InstrumentationBuilder data(String name, int value) => this; 78 InstrumentationBuilder data(String name, bool value) => this;
79 InstrumentationBuilder data2(String name, String value) => this; 79 InstrumentationBuilder data2(String name, int value) => this;
80 InstrumentationBuilder data3(String name, List<String> value) => this; 80 InstrumentationBuilder data3(String name, String value) => this;
81 InstrumentationBuilder data4(String name, List<String> value) => this;
81 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF; 82 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF;
82 void log() { 83 void log() {
83 } 84 }
84 InstrumentationBuilder metric(String name, int value) => this; 85 InstrumentationBuilder metric(String name, bool value) => this;
85 InstrumentationBuilder metric2(String name, String value) => this; 86 InstrumentationBuilder metric2(String name, int value) => this;
86 InstrumentationBuilder metric3(String name, List<String> value) => this; 87 InstrumentationBuilder metric3(String name, String value) => this;
88 InstrumentationBuilder metric4(String name, List<String> value) => this;
87 } 89 }
88 class InstrumentationLogger_9 implements InstrumentationLogger { 90 class InstrumentationLogger_9 implements InstrumentationLogger {
89 InstrumentationBuilder createBuilder(String name) => Instrumentation._NULL_INS TRUMENTATION_BUILDER; 91 InstrumentationBuilder createBuilder(String name) => Instrumentation._NULL_INS TRUMENTATION_BUILDER;
90 } 92 }
91 /** 93 /**
92 * The interface {@code InstrumentationBuilder} defines the behavior of objects used to collect data 94 * The interface {@code InstrumentationBuilder} defines the behavior of objects used to collect data
93 * about an operation that has occurred and record that data through an instrume ntation logger. 95 * about an operation that has occurred and record that data through an instrume ntation logger.
94 * <p> 96 * <p>
95 * For an example of using objects that implement this interface, see {@link Ins trumentation}. 97 * For an example of using objects that implement this interface, see {@link Ins trumentation}.
96 * @coverage dart.engine.utilities 98 * @coverage dart.engine.utilities
97 */ 99 */
98 abstract class InstrumentationBuilder { 100 abstract class InstrumentationBuilder {
99 /** 101 /**
100 * Append the given data to the data being collected by this builder. The info rmation is declared 102 * Append the given data to the data being collected by this builder. The info rmation is declared
101 * to potentially contain data that is either user identifiable or contains us er intellectual 103 * to potentially contain data that is either user identifiable or contains us er intellectual
102 * property (but is not guaranteed to contain either). 104 * property (but is not guaranteed to contain either).
103 * @param name the name used to identify the data 105 * @param name the name used to identify the data
104 * @param value the value of the data to be collected 106 * @param value the value of the data to be collected
105 * @return this builder 107 * @return this builder
106 */ 108 */
107 InstrumentationBuilder data(String name, int value); 109 InstrumentationBuilder data(String name, bool value);
108 /** 110 /**
109 * Append the given data to the data being collected by this builder. The info rmation is declared 111 * Append the given data to the data being collected by this builder. The info rmation is declared
110 * to potentially contain data that is either user identifiable or contains us er intellectual 112 * to potentially contain data that is either user identifiable or contains us er intellectual
111 * property (but is not guaranteed to contain either). 113 * property (but is not guaranteed to contain either).
112 * @param name the name used to identify the data 114 * @param name the name used to identify the data
113 * @param value the value of the data to be collected 115 * @param value the value of the data to be collected
114 * @return this builder 116 * @return this builder
115 */ 117 */
116 InstrumentationBuilder data2(String name, String value); 118 InstrumentationBuilder data2(String name, int value);
117 /** 119 /**
118 * Append the given data to the data being collected by this builder. The info rmation is declared 120 * Append the given data to the data being collected by this builder. The info rmation is declared
119 * to potentially contain data that is either user identifiable or contains us er intellectual 121 * to potentially contain data that is either user identifiable or contains us er intellectual
120 * property (but is not guaranteed to contain either). 122 * property (but is not guaranteed to contain either).
121 * @param name the name used to identify the data 123 * @param name the name used to identify the data
122 * @param value the value of the data to be collected 124 * @param value the value of the data to be collected
123 * @return this builder 125 * @return this builder
124 */ 126 */
125 InstrumentationBuilder data3(String name, List<String> value); 127 InstrumentationBuilder data3(String name, String value);
128 /**
129 * Append the given data to the data being collected by this builder. The info rmation is declared
130 * to potentially contain data that is either user identifiable or contains us er intellectual
131 * property (but is not guaranteed to contain either).
132 * @param name the name used to identify the data
133 * @param value the value of the data to be collected
134 * @return this builder
135 */
136 InstrumentationBuilder data4(String name, List<String> value);
126 /** 137 /**
127 * Answer the {@link InstrumentationLevel} of this {@code InstrumentationBuild er}. 138 * Answer the {@link InstrumentationLevel} of this {@code InstrumentationBuild er}.
128 * @return one of {@link InstrumentationLevel#EVERYTHING}, {@link Instrumentat ionLevel#METRICS},{@link InstrumentationLevel#OFF} 139 * @return one of {@link InstrumentationLevel#EVERYTHING}, {@link Instrumentat ionLevel#METRICS},{@link InstrumentationLevel#OFF}
129 */ 140 */
130 InstrumentationLevel get instrumentationLevel; 141 InstrumentationLevel get instrumentationLevel;
131 /** 142 /**
132 * Log the data that has been collected. The instrumentation builder should no t be used after this 143 * Log the data that has been collected. The instrumentation builder should no t be used after this
133 * method is invoked. The behavior of any method defined on this interface tha t is used after this 144 * method is invoked. The behavior of any method defined on this interface tha t is used after this
134 * method is invoked is undefined. 145 * method is invoked is undefined.
135 */ 146 */
136 void log(); 147 void log();
137 /** 148 /**
138 * Append the given metric to the data being collected by this builder. The in formation is 149 * Append the given metric to the data being collected by this builder. The in formation is
139 * declared to contain only metrics data (data that is not user identifiable a nd does not contain 150 * declared to contain only metrics data (data that is not user identifiable a nd does not contain
140 * user intellectual property). 151 * user intellectual property).
141 * @param name the name used to identify the data 152 * @param name the name used to identify the data
142 * @param value the value of the data to be collected 153 * @param value the value of the data to be collected
143 * @return this builder 154 * @return this builder
144 */ 155 */
145 InstrumentationBuilder metric(String name, int value); 156 InstrumentationBuilder metric(String name, bool value);
146 /** 157 /**
147 * Append the given metric to the data being collected by this builder. The in formation is 158 * Append the given metric to the data being collected by this builder. The in formation is
148 * declared to contain only metrics data (data that is not user identifiable a nd does not contain 159 * declared to contain only metrics data (data that is not user identifiable a nd does not contain
160 * user intellectual property).
161 * @param name the name used to identify the data
162 * @param value the value of the data to be collected
163 * @return this builder
164 */
165 InstrumentationBuilder metric2(String name, int value);
166 /**
167 * Append the given metric to the data being collected by this builder. The in formation is
168 * declared to contain only metrics data (data that is not user identifiable a nd does not contain
149 * user intellectual property). 169 * user intellectual property).
150 * @param name the name used to identify the data 170 * @param name the name used to identify the data
151 * @param value the value of the data to be collected 171 * @param value the value of the data to be collected
152 * @return this builder 172 * @return this builder
153 */ 173 */
154 InstrumentationBuilder metric2(String name, String value); 174 InstrumentationBuilder metric3(String name, String value);
155 /** 175 /**
156 * Append the given metric to the data being collected by this builder. The in formation is 176 * Append the given metric to the data being collected by this builder. The in formation is
157 * declared to contain only metrics data (data that is not user identifiable a nd does not contain 177 * declared to contain only metrics data (data that is not user identifiable a nd does not contain
158 * user intellectual property). 178 * user intellectual property).
159 * @param name the name used to identify the data 179 * @param name the name used to identify the data
160 * @param value the value of the data to be collected 180 * @param value the value of the data to be collected
161 * @return this builder 181 * @return this builder
162 */ 182 */
163 InstrumentationBuilder metric3(String name, List<String> value); 183 InstrumentationBuilder metric4(String name, List<String> value);
164 } 184 }
165 /** 185 /**
166 * The instrumentation recording level representing (1) recording {@link #EVERYT HING} recording of 186 * The instrumentation recording level representing (1) recording {@link #EVERYT HING} recording of
167 * all instrumentation data, (2) recording only {@link #METRICS} information, or (3) recording 187 * all instrumentation data, (2) recording only {@link #METRICS} information, or (3) recording
168 * turned {@link #OFF} in which case nothing is recorded. 188 * turned {@link #OFF} in which case nothing is recorded.
169 * @coverage dart.engine.utilities 189 * @coverage dart.engine.utilities
170 */ 190 */
171 class InstrumentationLevel { 191 class InstrumentationLevel {
172 /** 192 /**
173 * Recording all instrumented information 193 * Recording all instrumented information
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 */ 230 */
211 abstract class InstrumentationLogger { 231 abstract class InstrumentationLogger {
212 /** 232 /**
213 * Create a builder that can collect the data associated with an operation ide ntified by the given 233 * Create a builder that can collect the data associated with an operation ide ntified by the given
214 * name. 234 * name.
215 * @param name the name used to uniquely identify the operation 235 * @param name the name used to uniquely identify the operation
216 * @return the builder that was created 236 * @return the builder that was created
217 */ 237 */
218 InstrumentationBuilder createBuilder(String name); 238 InstrumentationBuilder createBuilder(String name);
219 } 239 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698