Switch over to the new name for compilation trace native function (#25594)

* Switch over to the new name for compilation trace native function.

Also see: https://github.com/flutter/engine/pull/7256

* rename

* roll the engine
This commit is contained in:
Stanislav Baranov
2018-12-20 16:07:36 -08:00
committed by GitHub
parent b6248e26b3
commit eb7a59b6d7
5 changed files with 11 additions and 11 deletions

View File

@@ -490,7 +490,7 @@ abstract class ResidentRunner {
Future<void> stop() async {
_stopped = true;
if (saveCompilationTrace)
await _saveCompilationTrace();
await _debugSaveCompilationTrace();
await stopEchoingDeviceLog();
await preStop();
return stopApp();
@@ -595,7 +595,7 @@ abstract class ResidentRunner {
}
}
Future<void> _saveCompilationTrace() async {
Future<void> _debugSaveCompilationTrace() async {
if (!supportsServiceProtocol)
return;
@@ -607,7 +607,7 @@ abstract class ResidentRunner {
List<int> buffer;
try {
buffer = await view.uiIsolate.flutterDumpCompilationTrace();
buffer = await view.uiIsolate.flutterDebugSaveCompilationTrace();
assert(buffer != null);
} catch (error) {
printError('Error communicating with Flutter on the device: $error');

View File

@@ -1312,9 +1312,9 @@ class Isolate extends ServiceObjectOwner {
);
}
Future<List<int>> flutterDumpCompilationTrace() async {
Future<List<int>> flutterDebugSaveCompilationTrace() async {
final Map<String, dynamic> result =
await invokeFlutterExtensionRpcRaw('ext.flutter.dumpCompilationTrace');
await invokeFlutterExtensionRpcRaw('ext.flutter.saveCompilationTrace');
if (result != null && result['value'] is List<dynamic>)
return result['value'].cast<int>();
return null;