Performance test cleanup (#20652)

* Fix TODO syntax.
* Clarify messages for some timeouts, to aid debugging.
* Increase some other timeouts that were a needlessly short, to reduce sources of flakes.
* Remove some more timeouts that were mostly redundant, to remove complexity.
* Minor style cleanup.
* Remove some dangerous traps (specifically, hide the explicit start/end times in TimedEvent since they shouldn't matter).
This commit is contained in:
Ian Hickson
2018-08-17 13:19:28 -07:00
committed by GitHub
parent 03d6f18f4a
commit 1993a67381
6 changed files with 14 additions and 24 deletions

View File

@@ -92,8 +92,8 @@ class TimelineSummary {
.map((Duration duration) => duration.inMicroseconds)
.toList(),
'frame_rasterizer_times': _extractGpuRasterizerDrawEvents()
.map((TimedEvent event) => event.duration.inMicroseconds)
.toList(),
.map((TimedEvent event) => event.duration.inMicroseconds)
.toList(),
};
}
@@ -151,8 +151,8 @@ class TimelineSummary {
if (events.moveNext()) {
final TimelineEvent endEvent = events.current;
result.add(new TimedEvent(
beginEvent.timestampMicros,
endEvent.timestampMicros
beginEvent.timestampMicros,
endEvent.timestampMicros,
));
}
}
@@ -197,15 +197,9 @@ class TimelineSummary {
/// Timing information about an event that happened in the event loop.
class TimedEvent {
/// Creates a timed event given begin and end timestamps in microseconds.
TimedEvent(this.beginTimeMicros, this.endTimeMicros)
TimedEvent(int beginTimeMicros, int endTimeMicros)
: this.duration = new Duration(microseconds: endTimeMicros - beginTimeMicros);
/// The timestamp when the event began.
final int beginTimeMicros;
/// The timestamp when the event ended.
final int endTimeMicros;
/// The duration of the event.
final Duration duration;
}