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

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

Issue 123763002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/html.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 `Instrumentation` implements support for logging instrumentation in formation. 9 * The class `Instrumentation` implements support for logging instrumentation in formation.
10 * 10 *
(...skipping 22 matching lines...) Expand all
33 * arguments and records the time at which the method is called so that the time to complete the 33 * arguments and records the time at which the method is called so that the time to complete the
34 * save operation can be calculated. The `log` method tells the builder that all of the data 34 * save operation can be calculated. The `log` method tells the builder that all of the data
35 * has been collected and that the resulting information should be logged. 35 * has been collected and that the resulting information should be logged.
36 * 36 *
37 * @coverage dart.engine.utilities 37 * @coverage dart.engine.utilities
38 */ 38 */
39 class Instrumentation { 39 class Instrumentation {
40 /** 40 /**
41 * A builder that will silently ignore all data and logging requests. 41 * A builder that will silently ignore all data and logging requests.
42 */ 42 */
43 static InstrumentationBuilder _NULL_INSTRUMENTATION_BUILDER = new Instrumentat ionBuilder_18(); 43 static InstrumentationBuilder _NULL_INSTRUMENTATION_BUILDER = new Instrumentat ionBuilder_19();
44 44
45 /** 45 /**
46 * An instrumentation logger that can be used when no other instrumentation lo gger has been 46 * An instrumentation logger that can be used when no other instrumentation lo gger has been
47 * configured. This logger will silently ignore all data and logging requests. 47 * configured. This logger will silently ignore all data and logging requests.
48 */ 48 */
49 static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_19(); 49 static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_20();
50 50
51 /** 51 /**
52 * The current instrumentation logger. 52 * The current instrumentation logger.
53 */ 53 */
54 static InstrumentationLogger _CURRENT_LOGGER = _NULL_LOGGER; 54 static InstrumentationLogger _CURRENT_LOGGER = _NULL_LOGGER;
55 55
56 /** 56 /**
57 * Create a builder that can collect the data associated with an operation. 57 * Create a builder that can collect the data associated with an operation.
58 * 58 *
59 * @param clazz the class performing the operation (not `null`) 59 * @param clazz the class performing the operation (not `null`)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 /** 92 /**
93 * Set the logger that should receive instrumentation information to the given logger. 93 * Set the logger that should receive instrumentation information to the given logger.
94 * 94 *
95 * @param logger the logger that should receive instrumentation information 95 * @param logger the logger that should receive instrumentation information
96 */ 96 */
97 static void set logger(InstrumentationLogger logger) { 97 static void set logger(InstrumentationLogger logger) {
98 _CURRENT_LOGGER = logger == null ? _NULL_LOGGER : logger; 98 _CURRENT_LOGGER = logger == null ? _NULL_LOGGER : logger;
99 } 99 }
100 } 100 }
101 101
102 class InstrumentationBuilder_18 implements InstrumentationBuilder { 102 class InstrumentationBuilder_19 implements InstrumentationBuilder {
103 InstrumentationBuilder data(String name, bool value) => this; 103 InstrumentationBuilder data(String name, bool value) => this;
104 104
105 InstrumentationBuilder data2(String name, int value) => this; 105 InstrumentationBuilder data2(String name, int value) => this;
106 106
107 InstrumentationBuilder data3(String name, String value) => this; 107 InstrumentationBuilder data3(String name, String value) => this;
108 108
109 InstrumentationBuilder data4(String name, List<String> value) => this; 109 InstrumentationBuilder data4(String name, List<String> value) => this;
110 110
111 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF; 111 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF;
112 112
113 void log() { 113 void log() {
114 } 114 }
115 115
116 void log2(int minTimeToLong) { 116 void log2(int minTimeToLong) {
117 } 117 }
118 118
119 InstrumentationBuilder metric(String name, bool value) => this; 119 InstrumentationBuilder metric(String name, bool value) => this;
120 120
121 InstrumentationBuilder metric2(String name, int value) => this; 121 InstrumentationBuilder metric2(String name, int value) => this;
122 122
123 InstrumentationBuilder metric3(String name, String value) => this; 123 InstrumentationBuilder metric3(String name, String value) => this;
124 124
125 InstrumentationBuilder metric4(String name, List<String> value) => this; 125 InstrumentationBuilder metric4(String name, List<String> value) => this;
126 126
127 InstrumentationBuilder record(Exception exception) => this; 127 InstrumentationBuilder record(Exception exception) => this;
128 } 128 }
129 129
130 class InstrumentationLogger_19 implements InstrumentationLogger { 130 class InstrumentationLogger_20 implements InstrumentationLogger {
131 InstrumentationBuilder createBuilder(String name) => Instrumentation._NULL_INS TRUMENTATION_BUILDER; 131 InstrumentationBuilder createBuilder(String name) => Instrumentation._NULL_INS TRUMENTATION_BUILDER;
132 } 132 }
133 133
134 /** 134 /**
135 * The interface `InstrumentationBuilder` defines the behavior of objects used t o collect data 135 * The interface `InstrumentationBuilder` defines the behavior of objects used t o collect data
136 * about an operation that has occurred and record that data through an instrume ntation logger. 136 * about an operation that has occurred and record that data through an instrume ntation logger.
137 * 137 *
138 * For an example of using objects that implement this interface, see [Instrumen tation]. 138 * For an example of using objects that implement this interface, see [Instrumen tation].
139 * 139 *
140 * @coverage dart.engine.utilities 140 * @coverage dart.engine.utilities
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 abstract class InstrumentationLogger { 310 abstract class InstrumentationLogger {
311 /** 311 /**
312 * Create a builder that can collect the data associated with an operation ide ntified by the given 312 * Create a builder that can collect the data associated with an operation ide ntified by the given
313 * name. 313 * name.
314 * 314 *
315 * @param name the name used to uniquely identify the operation 315 * @param name the name used to uniquely identify the operation
316 * @return the builder that was created 316 * @return the builder that was created
317 */ 317 */
318 InstrumentationBuilder createBuilder(String name); 318 InstrumentationBuilder createBuilder(String name);
319 } 319 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/html.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698