From 4351247654d41b7a96bfc8b4c19eacd9ac709e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Thu, 29 Aug 2024 16:16:03 -0700 Subject: [PATCH] Lift Web Performance tracks in Perfetto to the top of the custom tracks list (#46263) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46263 Changelog: [internal] Reviewed By: sammy-SC Differential Revision: D61980863 fbshipit-source-id: 400a615e32e056f40302ceb0d0d6423198bec52a --- .../react/nativemodule/webperformance/NativePerformance.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp b/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp index dcc6d8a0e5e..bac71e3f7dd 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp +++ b/packages/react-native/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp @@ -36,8 +36,8 @@ namespace { #ifdef WITH_PERFETTO const std::string TRACK_PREFIX = "Track:"; -const std::string DEFAULT_TRACK_NAME = "Web Performance: Timings"; -const std::string CUSTOM_TRACK_NAME_PREFIX = "Web Performance: "; +const std::string DEFAULT_TRACK_NAME = "# Web Performance: Timings"; +const std::string CUSTOM_TRACK_NAME_PREFIX = "# Web Performance: "; std::tuple parsePerfettoTrack( const std::string& name) { @@ -117,7 +117,7 @@ void NativePerformance::measure( } } #endif - std::string trackName = "Web Performance"; + std::string trackName = "# Web Performance"; const int TRACK_PREFIX = 6; if (name.starts_with("Track:")) { const auto trackNameDelimiter = name.find(':', TRACK_PREFIX);