LocalBenchmarkServerClient class

Implements the client REST API for the local benchmark server.

The local server is optional. If it is not available the benchmark UI must implement a manual fallback. This allows debugging benchmarks using plain flutter run.

Properties

hashCode int
The hash code for this object.
no setterinherited
isInManualMode bool
Whether we fell back to manual mode.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printToConsole(String report) Future<void>
Reports a message about the demo to the benchmark server.
reportError(dynamic error, StackTrace stackTrace) Future<void>
Reports an error to the benchmark server.
requestNextBenchmark() Future<String>
Asks the local server for the name of the next benchmark to run.
sendProfileData(Profile profile) Future<void>
Sends the profile data collected by the benchmark to the local benchmark server.
startPerformanceTracing(String? benchmarkName) Future<void>
Asks the local server to begin tracing performance.
stopPerformanceTracing() Future<void>
Stops the performance tracing session started by startPerformanceTracing.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

kManualFallback → const String
This value is returned by requestNextBenchmark.