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 5e9f8c3 commit 926c6d2
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 constexpr size_t InlineChunkHeaderSize = sizeof(ChunkRecord); // For test/fake_packet.{cc,h}.
static const size_t InlineChunkHeaderSize = sizeof(ChunkRecord); // 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;
constexpr size_t TraceBuffer::InlineChunkHeaderSize = sizeof(ChunkRecord);
const size_t TraceBuffer::InlineChunkHeaderSize;

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

0 comments on commit 926c6d2

Please sign in to comment.