perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

traced_probes: kFlushTimeoutMs (1s) is too restrictive and redundant

Open sashwinbalaji opened this issue 7 months ago • 0 comments

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:

  1. we are disregarding the user's request
  2. 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.

sashwinbalaji avatar Apr 22 '26 14:04 sashwinbalaji