perfetto
perfetto copied to clipboard
traced_probes: kFlushTimeoutMs (1s) is too restrictive and redundant
ProbesProducer::kFlushTimeoutMs is set to 1000ms and controls the max time the producer waits for its data sources to ack a flush.
There is already a service-side flush timeout (kDefaultFlushTimeoutMs) which is also configurable by the user using flush_timeout_ms. So:
- we are disregarding the user's request
- we are masking data loss if any as we erase any pending flushes and invoke NotifyFlushComplete as a normal ack.
We should either remove it altogether and let the service-side timeout handle it. Or raise kFlushTimeoutMs value to be a safety net.