commit | e563f660da03c97870f4f17425299828f6103a5d | [log] [tgz] |
---|---|---|
author | Florian Mayer <fmayer@google.com> | Wed Jan 09 11:04:50 2019 +0000 |
committer | Florian Mayer <fmayer@google.com> | Wed Jan 09 15:24:33 2019 +0000 |
tree | 93864e5030b467344cd5fe5562a304503de98307 | |
parent | adc060d0462d5f43301a16e4d46012f121873853 [diff] [blame] |
Allow to configure flush timeout. Bug: 121352331 Change-Id: I99bb996a61ec24291906cac6a7fe635253de768b
diff --git a/src/tracing/core/tracing_service_impl.h b/src/tracing/core/tracing_service_impl.h index ae4fe30..f16aaf9 100644 --- a/src/tracing/core/tracing_service_impl.h +++ b/src/tracing/core/tracing_service_impl.h
@@ -290,6 +290,11 @@ (base::GetWallTimeMs().count() % write_period_ms); } + uint32_t flush_timeout_ms() { + uint32_t timeout_ms = config.flush_timeout_ms(); + return timeout_ms ? timeout_ms : kDefaultFlushTimeoutMs; + } + const TracingSessionID id; // The consumer that started the session.