From 33ac7ad498b216599faac3e5dfa12b210b4a0952 Mon Sep 17 00:00:00 2001 From: methylDragon Date: Fri, 17 Jun 2022 17:31:02 -0700 Subject: [PATCH] Fix profiler option Signed-off-by: methylDragon --- profiler/src/CMakeLists.txt | 2 +- profiler/src/Profiler_Remotery_TEST.cc | 2 +- profiler/src/RemoteryProfilerImpl.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/profiler/src/CMakeLists.txt b/profiler/src/CMakeLists.txt index c5d42c1c7..39349e4a6 100644 --- a/profiler/src/CMakeLists.txt +++ b/profiler/src/CMakeLists.txt @@ -4,7 +4,7 @@ option(IGN_PROFILER_REMOTERY "Deprecated. Enable the Remotery profiler" # TODO(CH3): Remove the IGN_PROFILER_REMOTERY on deprecation # and set the option to TRUE instead option(GZ_PROFILER_REMOTERY "Enable the Remotery profiler" - IGN_PROFILER_REMOTERY) + ${IGN_PROFILER_REMOTERY}) if(NOT IGN_PROFILER_REMOTERY) message(DEPRECATION "The IGN_PROFILER_REMOTERY option is deprecated! Please use GZ_PROFILER_REMOTERY instead.") diff --git a/profiler/src/Profiler_Remotery_TEST.cc b/profiler/src/Profiler_Remotery_TEST.cc index 79afda2bb..eca13cd55 100644 --- a/profiler/src/Profiler_Remotery_TEST.cc +++ b/profiler/src/Profiler_Remotery_TEST.cc @@ -31,5 +31,5 @@ TEST(Profiler, ProfilerDisabled) EXPECT_TRUE(GZ_PROFILER_ENABLE); EXPECT_TRUE(GZ_PROFILER_VALID); EXPECT_EQ(Profiler::Instance()->ImplementationName(), - "ign_profiler_remotery"); + "gz_profiler_remotery"); } diff --git a/profiler/src/RemoteryProfilerImpl.cc b/profiler/src/RemoteryProfilerImpl.cc index 57b978ffe..fbe719689 100644 --- a/profiler/src/RemoteryProfilerImpl.cc +++ b/profiler/src/RemoteryProfilerImpl.cc @@ -207,7 +207,7 @@ RemoteryProfilerImpl::~RemoteryProfilerImpl() ////////////////////////////////////////////////// std::string RemoteryProfilerImpl::Name() const { - return "ign_profiler_remotery"; + return "gz_profiler_remotery"; } //////////////////////////////////////////////////