queryCheckpoint function
Record a checkpoint with the given name.
Implementation
void queryCheckpoint(String name) {
if (!_queryProfilerEnabled) return;
final now = DateTime.now().microsecondsSinceEpoch / 1000.0;
_checkpointTimes[name] = now;
_baselineTime ??= now;
if (name == 'query_first_chunk_received' && _firstTokenTime == null) {
_firstTokenTime = now;
}
}