Skip to content

Commit a66d7b2

Browse files
James Moranmeta-codesync[bot]
authored andcommitted
Removing all references of hz_tracing V2 from the codebase (#54062)
Summary: Pull Request resolved: #54062 Renaming every V2 tracing macro so that it no longer has `_V2` suffixed. This diff completes the migration of the hz_tracing V1->V2 API. This is a very large diff but is comprised of mostly mechanical changes. Most of these files were edited using `find` and `sed`, specifically: `find . -type f \( -name "*.h" -o -name "*.cpp" \) -exec sed -i 's/HZT_\(.*\)_V2/HZT_\1/g' {} +`. Since this is just a rename, no difference in functionality is expected. Differential Revision: D83808657
1 parent 07f40ec commit a66d7b2

File tree

1 file changed

+5
-5
lines changed
  • packages/react-native/ReactCxxPlatform/react/profiling

1 file changed

+5
-5
lines changed

packages/react-native/ReactCxxPlatform/react/profiling/tracy_noop.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#endif
1313

1414
#if RNCXX_WITH_PROFILING_PROVIDER
15-
#include <hz_tracing/v2/TracingMacros.h>
15+
#include <hz_tracing/TracingMacros.h>
1616

1717
#ifndef TRACE_FUNCTION
1818
#if defined(__GNUC__) || defined(__clang__)
@@ -26,16 +26,16 @@ static inline constexpr char kTraceCategory[] = "react_native";
2626

2727
HZT_DEFINE_TRACING_CATEGORIES(
2828
facebook::react,
29-
horizon::tracing::v2::Category(
29+
horizon::tracing::Category(
3030
kTraceCategory,
3131
"react_native",
32-
horizon::tracing::v2::StrippingLevel::Important));
32+
horizon::tracing::StrippingLevel::Important));
3333

3434
#define SCOPED_TRACE_CPU_AUTO() \
35-
HZT_TRACE_SCOPE_NS_V2(::facebook::react, kTraceCategory, TRACE_FUNCTION);
35+
HZT_TRACE_SCOPE_NS(::facebook::react, kTraceCategory, TRACE_FUNCTION);
3636

3737
#define SCOPED_TRACE_CPU(name) \
38-
HZT_TRACE_SCOPE_NS_V2(::facebook::react, kTraceCategory, name);
38+
HZT_TRACE_SCOPE_NS(::facebook::react, kTraceCategory, name);
3939

4040
#else
4141
#ifndef SCOPED_TRACE_CPU_AUTO

0 commit comments

Comments
 (0)