Use duration not threadDuration for frame duration (#13117)

1. We want to measure wall-clock duration for the benchmarks, as opposed
   to thread duration (e.g., waiting on a mutex should accrue time) and
   'dur' is the metric to use for that.

2. On Darwin-based systems (macOS and iOS) 'tdur' is the result of a
   mach syscall lookup to thread_info. This call returns unreliable data
   on iOS. Chromium, for example, disables thread time support entirely
   for iOS.
This commit is contained in:
Chris Bracken
2017-11-20 17:37:14 -08:00
committed by GitHub
parent a95b752dc6
commit 14b5cb047e
2 changed files with 9 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ void main() {
}
Map<String, dynamic> build(int timeStamp, int duration) => <String, dynamic>{
'name': 'Frame', 'ph': 'X', 'ts': timeStamp, 'tdur': duration
'name': 'Frame', 'ph': 'X', 'ts': timeStamp, 'dur': duration
};
Map<String, dynamic> begin(int timeStamp) => <String, dynamic>{