Index: base/trace_event/trace_buffer.h |
diff --git a/base/trace_event/trace_buffer.h b/base/trace_event/trace_buffer.h |
index 4074120e4c9260be8ee1d3c29b3c09fdafa00261..d54bd74bec53edd05e87b36b0025376c17aac136 100644 |
--- a/base/trace_event/trace_buffer.h |
+++ b/base/trace_event/trace_buffer.h |
@@ -40,6 +40,10 @@ class BASE_EXPORT TraceBufferChunk { |
void EstimateTraceMemoryOverhead(TraceEventMemoryOverhead* overhead); |
+ // These values must be kept consistent with the numbers of bits of |
+ // chunk_index and event_index fields in TraceEventHandle |
+ // (in trace_event_impl.h). |
+ static const size_t kMaxChunkIndex = (1u << 26) - 1; |
static const size_t kTraceBufferChunkSize = 64; |
private: |