Fixes AzToolsFramework
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Benchmark
|
||||
SetupPrefabSystem();
|
||||
}
|
||||
|
||||
void BM_Prefab::SetUp(::benchmark::State & state)
|
||||
void BM_Prefab::internalSetUp(const benchmark::State& state)
|
||||
{
|
||||
AZ::Debug::TraceMessageBus::Handler::BusConnect();
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Benchmark
|
||||
SetupPrefabSystem();
|
||||
}
|
||||
|
||||
void BM_Prefab::TearDown(::benchmark::State & state)
|
||||
void BM_Prefab::internalTearDown(const benchmark::State& state)
|
||||
{
|
||||
m_paths = {};
|
||||
|
||||
|
||||
@@ -24,12 +24,27 @@ namespace Benchmark
|
||||
: public UnitTest::AllocatorsBenchmarkFixture
|
||||
, public UnitTest::TraceBusRedirector
|
||||
{
|
||||
protected:
|
||||
using ::benchmark::Fixture::SetUp;
|
||||
using ::benchmark::Fixture::TearDown;
|
||||
void internalSetUp(const benchmark::State& state);
|
||||
void internalTearDown(const benchmark::State& state);
|
||||
|
||||
void SetUp(::benchmark::State& state) override;
|
||||
void TearDown(::benchmark::State& state) override;
|
||||
protected:
|
||||
void SetUp(const benchmark::State& state) override
|
||||
{
|
||||
internalSetUp(state);
|
||||
}
|
||||
void SetUp(benchmark::State& state) override
|
||||
{
|
||||
internalSetUp(state);
|
||||
}
|
||||
|
||||
void TearDown(const benchmark::State& state) override
|
||||
{
|
||||
internalTearDown(state);
|
||||
}
|
||||
void TearDown(benchmark::State& state) override
|
||||
{
|
||||
internalTearDown(state);
|
||||
}
|
||||
|
||||
AZ::Entity* CreateEntity(
|
||||
const char* entityName,
|
||||
|
||||
Reference in New Issue
Block a user