Fixes AzToolsFramework

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-09-03 15:08:43 -07:00
parent 28795c8f5c
commit 2f71b28b97
6 changed files with 27 additions and 9 deletions
@@ -17,7 +17,7 @@ namespace AzToolsFramework
: public EditorEntityAPI
{
public:
~EditorEntityManager();
virtual ~EditorEntityManager();
void Start();
@@ -97,6 +97,7 @@ namespace AzToolsFramework::AssetUtils
struct EnabledPlatformsVisitor
: AZ::SettingsRegistryInterface::Visitor
{
using AZ::SettingsRegistryInterface::Visitor::Visit;
void Visit(AZStd::string_view path, AZStd::string_view valueName, AZ::SettingsRegistryInterface::Type, AZStd::string_view value) override;
AZStd::vector<AZStd::string> m_enabledPlatforms;
@@ -34,7 +34,7 @@ namespace AzToolsFramework
static PreemptiveUndoCache* Get();
PreemptiveUndoCache();
~PreemptiveUndoCache();
virtual ~PreemptiveUndoCache();
void RegisterToUndoCacheInterface();
@@ -32,6 +32,8 @@ namespace AzToolsFramework
public:
AZ_CLASS_ALLOCATOR(PrefabUndoCache, AZ::SystemAllocator, 0);
virtual ~PrefabUndoCache() = default;
void Initialize();
void Destroy();
@@ -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,