SkiaPerfPoint class

A MetricPoint modeled after the format that Skia Perf expects.

Skia Perf Format is a JSON file that looks like:

{
    "gitHash": "fe4a4029a080bc955e9588d05a6cd9eb490845d4",
    "key": {
        "arch": "x86",
        "gpu": "GTX660",
        "model": "ShuttleA",
        "os": "Ubuntu12"
    },
    "results": {
        "ChunkAlloc_PushPop_640_480": {
            "nonrendering": {
                "min_ms": 0.01485466666666667,
                "options": {
                    "source_type": "bench"
                }
            }
        },
        "DeferredSurfaceCopy_discardable_640_480": {
            "565": {
                "min_ms": 2.215988,
                "options": {
                    "source_type": "bench"
                }
            }
        }
     }
  }
}
Inheritance

Constructors

SkiaPerfPoint.fromPoint(MetricPoint p)
Construct SkiaPerfPoint from a well-formed MetricPoint.
factory

Properties

gitHash String?
SHA such as 'ad20d368ffa09559754e4b2b5c12951341ca3b2d'
final
githubRepo String
In the format of '
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for updating existing data point.
no setterinherited
jsonUrl String?
The url to the Skia perf json file in the Google Cloud Storage bucket.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subResult String
The name of "subResult" comes from the special treatment of "sub_result" in SkiaPerf. If not provided, its value will be set to kSkiaPerfValueKey.
final
tags UnmodifiableMapView<String, String>
Test name, unit, timestamp, configs, git revision, ..., in sorted order.
no setterinherited
testName String
For Flutter devicelab, this is the task name (e.g., 'flutter_gallery__transition_perf'); for Google benchmark, this is the benchmark name (e.g., 'BM_ShellShutdown').
final
value double?
Can store integer values.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

toSkiaPerfJson(List<SkiaPerfPoint> points) Map<String, dynamic>
Convert a list of SkiaPoints with the same git repo and git revision into a single json file in the Skia perf format.