/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/jsinspector-modern/tracing/EventLoopReporter.h
39 строк
941 B
Ruslan Lesiutin
Use HighResTimeStamp (#51511)
22 май 2025, 20:16
22 май 2025, 20:16
aa72028
Код
Авторство
О чём код?
/* * 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 #if defined(REACT_NATIVE_DEBUGGER_ENABLED) #include <react/timing/primitives.h> #endif namespace facebook::react::jsinspector_modern::tracing { enum class EventLoopPhase { Task, Microtasks, }; struct EventLoopReporter { public: explicit EventLoopReporter(EventLoopPhase phase); EventLoopReporter(const EventLoopReporter&) = delete; EventLoopReporter(EventLoopReporter&&) = delete; EventLoopReporter& operator=(const EventLoopReporter&) = delete; EventLoopReporter& operator=(EventLoopReporter&&) = delete; ~EventLoopReporter(); private: #if defined(REACT_NATIVE_DEBUGGER_ENABLED) HighResTimeStamp startTimestamp_; EventLoopPhase phase_; #endif }; } // namespace facebook::react::jsinspector_modern::tracing