startPreciseCoverage method
Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code
coverage may be incomplete. Enabling prevents running optimized code and resets execution
counters.
callCount
Collect accurate call counts beyond simple 'covered' or 'not covered'.
detailed
Collect block-based coverage.
allowTriggeredUpdates
Allow the backend to send updates on its own initiative
Returns: Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
Implementation
Future<num> startPreciseCoverage({
bool? callCount,
bool? detailed,
bool? allowTriggeredUpdates,
}) async {
var result = await _client.send('Profiler.startPreciseCoverage', {
if (callCount != null) 'callCount': callCount,
if (detailed != null) 'detailed': detailed,
if (allowTriggeredUpdates != null)
'allowTriggeredUpdates': allowTriggeredUpdates,
});
return result['timestamp'] as num;
}