Skip to content

Commit

Permalink
perfetto.cc: fix chunkRecord with const
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Jul 11, 2024
1 parent 926c6d2 commit 20a850f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profiling/perfetto-connector/perfetto/perfetto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49250,7 +49250,7 @@ class TracePacket;
// ReadNextTracePacket() below.
class TraceBuffer {
public:
static const size_t InlineChunkHeaderSize = sizeof(ChunkRecord); // For test/fake_packet.{cc,h}.
static const size_t InlineChunkHeaderSize; // For test/fake_packet.{cc,h}.

// See comment in the header above.
enum OverwritePolicy { kOverwrite, kDiscard };
Expand Down Expand Up @@ -49830,7 +49830,7 @@ constexpr uint8_t kChunkNeedsPatching =
} // namespace.

constexpr size_t TraceBuffer::ChunkRecord::kMaxSize;
const size_t TraceBuffer::InlineChunkHeaderSize;
const size_t TraceBuffer::InlineChunkHeaderSize = sizeof(ChunkRecord);

// static
std::unique_ptr<TraceBuffer> TraceBuffer::Create(size_t size_in_bytes,
Expand Down

0 comments on commit 20a850f

Please sign in to comment.