/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include #include #include namespace facebook::react { /** * An internal interface for logging performance events to Perfetto, when * configured. */ class ReactPerfettoLogger { public: static bool isTracing(); static void mark( const std::string_view& eventName, double startTime, const std::optional& trackName); static void measure( const std::string_view& eventName, double startTime, double endTime, const std::optional& trackName); }; } // namespace facebook::react