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

Unified Diff: pkg/analyzer/lib/src/generated/instrumentation.dart

Issue 68233003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/instrumentation.dart
diff --git a/pkg/analyzer/lib/src/generated/instrumentation.dart b/pkg/analyzer/lib/src/generated/instrumentation.dart
index 278b08711d315503f30ffe91b465088b9f55e126..50ddb0753127e2096c7c0e464866d05a4c340e07 100644
--- a/pkg/analyzer/lib/src/generated/instrumentation.dart
+++ b/pkg/analyzer/lib/src/generated/instrumentation.dart
@@ -1,7 +1,10 @@
// This code was auto-generated, is not intended to be edited, and is subject to
// significant change. Please see the README file for more information.
+
library engine.instrumentation;
+
import 'java_core.dart';
+
/**
* The class `Instrumentation` implements support for logging instrumentation information.
*
@@ -34,17 +37,16 @@ import 'java_core.dart';
* @coverage dart.engine.utilities
*/
class Instrumentation {
-
/**
* A builder that will silently ignore all data and logging requests.
*/
- static final InstrumentationBuilder nullBuilder = new InstrumentationBuilder_16();
+ static final InstrumentationBuilder nullBuilder = new InstrumentationBuilder_17();
/**
* An instrumentation logger that can be used when no other instrumentation logger has been
* configured. This logger will silently ignore all data and logging requests.
*/
- static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_17();
+ static InstrumentationLogger _NULL_LOGGER = new InstrumentationLogger_18();
/**
* The current instrumentation logger.
@@ -89,25 +91,39 @@ class Instrumentation {
_CURRENT_LOGGER = logger == null ? _NULL_LOGGER : logger;
}
}
-class InstrumentationBuilder_16 implements InstrumentationBuilder {
+
+class InstrumentationBuilder_17 implements InstrumentationBuilder {
InstrumentationBuilder data(String name, bool value) => this;
+
InstrumentationBuilder data2(String name, int value) => this;
+
InstrumentationBuilder data3(String name, String value) => this;
+
InstrumentationBuilder data4(String name, List<String> value) => this;
+
InstrumentationLevel get instrumentationLevel => InstrumentationLevel.OFF;
+
void log() {
}
+
void log2(int minTimeToLong) {
}
+
InstrumentationBuilder metric(String name, bool value) => this;
+
InstrumentationBuilder metric2(String name, int value) => this;
+
InstrumentationBuilder metric3(String name, String value) => this;
+
InstrumentationBuilder metric4(String name, List<String> value) => this;
+
InstrumentationBuilder record(Exception exception) => this;
}
-class InstrumentationLogger_17 implements InstrumentationLogger {
+
+class InstrumentationLogger_18 implements InstrumentationLogger {
InstrumentationBuilder createBuilder(String name) => Instrumentation.nullBuilder;
}
+
/**
* The interface `InstrumentationBuilder` defines the behavior of objects used to collect data
* about an operation that has occurred and record that data through an instrumentation logger.
@@ -117,7 +133,6 @@ class InstrumentationLogger_17 implements InstrumentationLogger {
* @coverage dart.engine.utilities
*/
abstract class InstrumentationBuilder {
-
/**
* Append the given data to the data being collected by this builder. The information is declared
* to potentially contain data that is either user identifiable or contains user intellectual
@@ -241,6 +256,7 @@ abstract class InstrumentationBuilder {
*/
InstrumentationBuilder record(Exception exception);
}
+
/**
* The instrumentation recording level representing (1) recording [EVERYTHING] recording of
* all instrumentation data, (2) recording only [METRICS] information, or (3) recording
@@ -249,7 +265,6 @@ abstract class InstrumentationBuilder {
* @coverage dart.engine.utilities
*/
class InstrumentationLevel extends Enum<InstrumentationLevel> {
-
/** Recording all instrumented information */
static final InstrumentationLevel EVERYTHING = new InstrumentationLevel('EVERYTHING', 0);
@@ -258,7 +273,9 @@ class InstrumentationLevel extends Enum<InstrumentationLevel> {
/** Nothing recorded */
static final InstrumentationLevel OFF = new InstrumentationLevel('OFF', 2);
+
static final List<InstrumentationLevel> values = [EVERYTHING, METRICS, OFF];
+
static InstrumentationLevel fromString(String str) {
if (str == "EVERYTHING") {
return InstrumentationLevel.EVERYTHING;
@@ -271,8 +288,10 @@ class InstrumentationLevel extends Enum<InstrumentationLevel> {
}
throw new IllegalArgumentException("Unrecognised InstrumentationLevel");
}
+
InstrumentationLevel(String name, int ordinal) : super(name, ordinal);
}
+
/**
* The interface `InstrumentationLogger` defines the behavior of objects that are used to log
* instrumentation data.
@@ -282,7 +301,6 @@ class InstrumentationLevel extends Enum<InstrumentationLevel> {
* @coverage dart.engine.utilities
*/
abstract class InstrumentationLogger {
-
/**
* Create a builder that can collect the data associated with an operation identified by the given
* name.
« 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