From 5e9f8c369b9e20f73156aef208f863ed07d8595e Mon Sep 17 00:00:00 2001 From: Vivek Kale Date: Thu, 11 Jul 2024 11:18:15 -0700 Subject: [PATCH] perfetto.cc: InlineChunk is now constexpr --- profiling/perfetto-connector/perfetto/perfetto.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiling/perfetto-connector/perfetto/perfetto.cc b/profiling/perfetto-connector/perfetto/perfetto.cc index 335771271..93788d899 100644 --- a/profiling/perfetto-connector/perfetto/perfetto.cc +++ b/profiling/perfetto-connector/perfetto/perfetto.cc @@ -2472,7 +2472,7 @@ void InstallCtrCHandler(CtrlCHandlerFunction); /* * Copyright (C) 2021 The Android Open Source Project * - * Licensed under the Apache License, Version 2.0 (the "License"); + * Licensed under the Apache License, Version 2.0 (the "License");InlineChunkHeaderSize' * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * @@ -49250,7 +49250,7 @@ class TracePacket; // ReadNextTracePacket() below. class TraceBuffer { public: - static const size_t InlineChunkHeaderSize; // For test/fake_packet.{cc,h}. + static constexpr size_t InlineChunkHeaderSize = sizeof(ChunkRecord); // For test/fake_packet.{cc,h}. // See comment in the header above. enum OverwritePolicy { kOverwrite, kDiscard };