Filter profiling events by names not category (#61185)

Category isn't preserved by timeline events as `Dart_TimelineEvent`
specifies the category as `embedder`.

Fixes: https://github.com/flutter/flutter/issues/60008
This commit is contained in:
Kaushik Iska
2020-07-10 12:13:56 -07:00
committed by GitHub
parent 1c1ef133ee
commit afd745e893
3 changed files with 17 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ void main() {
};
Map<String, dynamic> cpuUsage(int timeStamp, double cpuUsage) => <String, dynamic>{
'cat': 'flutter::profiling',
'cat': 'embedder',
'name': 'CpuUsage',
'ts': timeStamp,
'args': <String, String>{
@@ -74,7 +74,7 @@ void main() {
};
Map<String, dynamic> memoryUsage(int timeStamp, double dirty, double shared) => <String, dynamic>{
'cat': 'flutter::profiling',
'cat': 'embedder',
'name': 'MemoryUsage',
'ts': timeStamp,
'args': <String, String>{