mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9f3fe8178f
commit
4351247654
+3
-3
@@ -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<std::string, std::string_view> 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);
|
||||
|
||||
Reference in New Issue
Block a user