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:
@@ -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>{
|
||||
|
||||
Reference in New Issue
Block a user