TracePlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- TracePlatform
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAttribute(
String name) → String? - Returns the value of an attribute.
-
getAttributes(
) → Map< String, String> - Returns the map of all the attributes added to this trace.
-
getMetric(
String name) → int - Gets the value of the metric with the given name in the current trace.
-
incrementMetric(
String name, int value) → void - increments the metric with the given name in this trace by the value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putAttribute(
String name, String value) → void - Sets a String value for the specified attribute.
-
removeAttribute(
String name) → void - Removes an already added attribute from the Traces.
-
setMetric(
String name, int value) → void - Sets the value of the metric with the given name in this trace to the value provided
-
start(
) → Future< void> - Starts this trace.
-
stop(
) → Future< void> - Stops this trace.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
verify(
TracePlatform instance) → void -
Ensures that the platform instance was constructed with a non-
const
token that matches the provided token and throws AssertionError if not.override
Constants
- maxAttributeKeyLength → const int
- Maximum allowed length of a key passed to putAttribute.
- maxAttributeValueLength → const int
- Maximum allowed length of a value passed to putAttribute.
- maxCustomAttributes → const int
- Maximum allowed number of attributes that can be added.