startRecording method
Begins the recording session.
timeWindow - The maximum duration from the current time until API calls are kept.
If not specified, all API calls will be kept during the recording, which can lead to significant memory consumption for long sessions.
loggingEnabled - If set to true, the recorded API calls will be printed in the logs. Default value: false.
compressed - If set to true, the recorded output will be compressed with gzip. Default value: false.
Implementation
Future<void> startRecording({
Duration? timeWindow,
bool loggingEnabled = false,
bool compressed = false,
}) {
return _messenger.startRecording(
MapRecorderOptions(
timeWindow: timeWindow?.inMilliseconds,
loggingEnabled: loggingEnabled,
compressed: compressed,
),
);
}