Use the new service protocol message names (#35482)
* Use the new service protocol message names
clearVMTimeline
setVMTimelineFlags
getVMTimeline
getVMTimelineFlags
* Fix clearTimeline at another spot.
diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart
index dcdac64..af9af23 100644
--- a/packages/flutter_tools/lib/src/vmservice.dart
+++ b/packages/flutter_tools/lib/src/vmservice.dart
@@ -948,13 +948,13 @@
}
Future<Map<String, dynamic>> clearVMTimeline() {
- return invokeRpcRaw('_clearVMTimeline');
+ return invokeRpcRaw('clearVMTimeline');
}
Future<Map<String, dynamic>> setVMTimelineFlags(List<String> recordedStreams) {
assert(recordedStreams != null);
return invokeRpcRaw(
- '_setVMTimelineFlags',
+ 'setVMTimelineFlags',
params: <String, dynamic>{
'recordedStreams': recordedStreams,
},
@@ -962,7 +962,7 @@
}
Future<Map<String, dynamic>> getVMTimeline() {
- return invokeRpcRaw('_getVMTimeline');
+ return invokeRpcRaw('getVMTimeline');
}
Future<void> refreshViews({ bool waitForViews = false }) async {