metrics_center library

Classes

FlutterDestination
All Flutter performance metrics (framework, engine, ...) should be written to this destination.
FlutterEngineMetricPoint
Convenient class to capture the benchmarks in the Flutter engine repo.
GoogleBenchmarkParser
Parse the json result of https://github.com/google/benchmark.
MetricDestination
Interface to write MetricPoint.
MetricPoint
Common format of a metric data point.
SkiaPerfDestination
A MetricDestination that conforms to Skia Perf's protocols.
SkiaPerfGcsAdaptor
Handle writing and updates of Skia perf GCS buckets.
SkiaPerfPoint
A MetricPoint modeled after the format that Skia Perf expects.

Constants

kBucketName → const String
The prod bucket name for Flutter's instance of Skia Perf.
kFlutterEngineRepo → const String
Engine repo name.
kFlutterFrameworkRepo → const String
Flutter repo name.
kGithubRepoKey → const String
Strings used for MetricPoint tag keys
kGitRevisionKey → const String
Strings used for MetricPoint tag keys
kNameKey → const String
Strings used for MetricPoint tag keys
kProjectId → const String
The key for the GCP project id in the credentials json.
kSkiaPerfDefaultConfig → const String
JSON key for Skia Perf's default config entry.
kSkiaPerfGitHashKey → const String
JSON key for Skia Perf's git hash entry.
kSkiaPerfOptionsKey → const String
JSON key for Skia Perf's options entry.
kSkiaPerfResultsKey → const String
JSON key for Skia Perf's results entry.
kSkiaPerfValueKey → const String
JSON key for Skia Perf's value entry.
kSourceTimeMicrosName → const String
Timeline key in JSON.
kSubResultKey → const String
Strings used for MetricPoint tag keys
kTestBucketName → const String
The test bucket name for Flutter's instance of Skia Perf.
kUnitKey → const String
Strings used for MetricPoint tag keys

Functions

authClientFromAccessToken(String token, List<String> scopes) → AuthClient
Create AuthClient in case we only have an access token without the full credentials json. It's currently the case for Chrmoium LUCI bots.