mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
xplat/js/react-native-github/packages/react-native/ReactCommon/react/performance/timeline/tests/PerformanceEntryReporterTest.cpp (#52780)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52780 Reviewed By: rshest Differential Revision: D78798597 fbshipit-source-id: 28cdd8b2fdd4c5d5889f527ee7574f87e18215a7
This commit is contained in:
1 parent
fb4587780e
commit
c97741da39
1 file changed
+3
-2
+3
-2
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "../PerformanceEntryReporter.h"
|
||||
|
||||
#include <array>
|
||||
#include <variant>
|
||||
|
||||
using namespace facebook::react;
|
||||
@@ -46,13 +47,13 @@ namespace facebook::react {
|
||||
[[maybe_unused]] static std::ostream& operator<<(
|
||||
std::ostream& os,
|
||||
const PerformanceEntry& entry) {
|
||||
static constexpr const char* entryTypeNames[] = {
|
||||
static constexpr auto entryTypeNames = std::to_array<const char*>({
|
||||
"PerformanceEntryType::UNDEFINED",
|
||||
"PerformanceEntryType::MARK",
|
||||
"PerformanceEntryType::MEASURE",
|
||||
"PerformanceEntryType::EVENT",
|
||||
"PerformanceEntryType::RESOURCE",
|
||||
};
|
||||
});
|
||||
|
||||
return std::visit(
|
||||
[&](const auto& entryDetails) -> std::ostream& {
|
||||
|
||||
Reference in new issue
Block a user