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

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

Issue 24481002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 library engine.instrumentation; 3 library engine.instrumentation;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 /** 5 /**
6 * The class `Instrumentation` implements support for logging instrumentation in formation. 6 * The class `Instrumentation` implements support for logging instrumentation in formation.
7 * 7 *
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 10 * operations, such as tokenizing source code. The information to be logged is g athered by
(...skipping 20 matching lines...) Expand all
31 * save operation can be calculated. The `log` method tells the builder that all of the data 31 * save operation can be calculated. The `log` method tells the builder that all of the data
32 * has been collected and that the resulting information should be logged. 32 * has been collected and that the resulting information should be logged.
33 * 33 *
34 * @coverage dart.engine.utilities 34 * @coverage dart.engine.utilities
35 */ 35 */
36 class Instrumentation { 36 class Instrumentation {
37 37
38 /** 38 /**
39 * A builder that will silently ignore all data and logging requests. 39 * A builder that will silently ignore all data and logging requests.
40 */ 40 */
41 static final InstrumentationBuilder nullBuilder = new InstrumentationBuilder_1 6(); 41 static final InstrumentationBuilder nullBuilder = new InstrumentationBuilder_1 5();
42 42
43 /** 43 /**
44 * An instrumentation logger that can be used when no other instrumentation lo gger has been 44 * An instrumentation logger that can be used when no other instrumentation lo gger has been
45 * configured. This logger will silently ignore all data and logging requests. 45 * configured. This logger will silently ignore all data and logging requests.
46 */ 46 */
47 static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_17(); 47 static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_16();
48 48
49 /** 49 /**
50 * The current instrumentation logger. 50 * The current instrumentation logger.
51 */ 51 */
52 static InstrumentationLogger _CURRENT_LOGGER = _NULL_LOGGER; 52 static InstrumentationLogger _CURRENT_LOGGER = _NULL_LOGGER;
53 53
54 /** 54 /**
55 * Create a builder that can collect the data associated with an operation. 55 * Create a builder that can collect the data associated with an operation.
56 * 56 *
57 * @param clazz the class performing the operation (not `null`) 57 * @param clazz the class performing the operation (not `null`)
(...skipping 24 matching lines...) Expand all
82 82
83 /** 83 /**
84 * Set the logger that should receive instrumentation information to the given logger. 84 * Set the logger that should receive instrumentation information to the given logger.
85 * 85 *
86 * @param logger the logger that should receive instrumentation information 86 * @param logger the logger that should receive instrumentation information
87 */ 87 */
88 static void set logger(InstrumentationLogger logger2) { 88 static void set logger(InstrumentationLogger logger2) {
89 _CURRENT_LOGGER = logger2 == null ? _NULL_LOGGER : logger2; 89 _CURRENT_LOGGER = logger2 == null ? _NULL_LOGGER : logger2;
90 } 90 }
91 } 91 }
92 class InstrumentationBuilder_16 implements InstrumentationBuilder { 92 class InstrumentationBuilder_15 implements InstrumentationBuilder {
93 InstrumentationBuilder data(String name, bool value) => this; 93 InstrumentationBuilder data(String name, bool value) => this;
94 InstrumentationBuilder data2(String name, int value) => this; 94 InstrumentationBuilder data2(String name, int value) => this;
95 InstrumentationBuilder data3(String name, String value) => this; 95 InstrumentationBuilder data3(String name, String value) => this;
96 InstrumentationBuilder data4(String name, List<String> value) => this; 96 InstrumentationBuilder data4(String name, List<String> value) => this;
97 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF; 97 InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF;
98 void log() { 98 void log() {
99 } 99 }
100 void log2(int minTimeToLong) { 100 void log2(int minTimeToLong) {
101 } 101 }
102 InstrumentationBuilder metric(String name, bool value) => this; 102 InstrumentationBuilder metric(String name, bool value) => this;
103 InstrumentationBuilder metric2(String name, int value) => this; 103 InstrumentationBuilder metric2(String name, int value) => this;
104 InstrumentationBuilder metric3(String name, String value) => this; 104 InstrumentationBuilder metric3(String name, String value) => this;
105 InstrumentationBuilder metric4(String name, List<String> value) => this; 105 InstrumentationBuilder metric4(String name, List<String> value) => this;
106 InstrumentationBuilder record(Exception exception) => this; 106 InstrumentationBuilder record(Exception exception) => this;
107 } 107 }
108 class InstrumentationLogger_17 implements InstrumentationLogger { 108 class InstrumentationLogger_16 implements InstrumentationLogger {
109 InstrumentationBuilder createBuilder(String name) => Instrumentation.nullBuild er; 109 InstrumentationBuilder createBuilder(String name) => Instrumentation.nullBuild er;
110 } 110 }
111 /** 111 /**
112 * The interface `InstrumentationBuilder` defines the behavior of objects used t o collect data 112 * The interface `InstrumentationBuilder` defines the behavior of objects used t o collect data
113 * about an operation that has occurred and record that data through an instrume ntation logger. 113 * about an operation that has occurred and record that data through an instrume ntation logger.
114 * 114 *
115 * For an example of using objects that implement this interface, see [Instrumen tation]. 115 * For an example of using objects that implement this interface, see [Instrumen tation].
116 * 116 *
117 * @coverage dart.engine.utilities 117 * @coverage dart.engine.utilities
118 */ 118 */
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 /** 286 /**
287 * Create a builder that can collect the data associated with an operation ide ntified by the given 287 * Create a builder that can collect the data associated with an operation ide ntified by the given
288 * name. 288 * name.
289 * 289 *
290 * @param name the name used to uniquely identify the operation 290 * @param name the name used to uniquely identify the operation
291 * @return the builder that was created 291 * @return the builder that was created
292 */ 292 */
293 InstrumentationBuilder createBuilder(String name); 293 InstrumentationBuilder createBuilder(String name);
294 } 294 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/error.dart ('k') | pkg/analyzer_experimental/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698