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