/* * 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. */ #include "NativePerformanceObserver.h" #include namespace facebook::react { NativePerformanceObserver::NativePerformanceObserver( std::shared_ptr jsInvoker) : NativePerformanceObserverCxxSpec(std::move(jsInvoker)) {} void NativePerformanceObserver::startReporting( jsi::Runtime &rt, std::string entryType) { LOG(INFO) << "Started reporting perf entry type: " << entryType; } void NativePerformanceObserver::stopReporting( jsi::Runtime &rt, std::string entryType) { LOG(INFO) << "Stopped reporting perf entry type: " << entryType; } std::vector NativePerformanceObserver::getPendingEntries( jsi::Runtime &rt) { return std::vector{}; } void NativePerformanceObserver::setOnPerformanceEntryCallback( jsi::Runtime &rt, std::optional> callback) { callback_ = callback; LOG(INFO) << "setOnPerformanceEntryCallback: " << (callback ? "non-empty" : "empty"); } } // namespace facebook::react