SingleInstanceOverrideBenchmarks.h 922 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #if defined(HAVE_BENCHMARK)
  9. #pragma once
  10. #include <Prefab/Benchmark/Propagation/PropagationBenchmarkFixture.h>
  11. namespace Benchmark
  12. {
  13. using namespace AzToolsFramework::Prefab;
  14. //! This class captures benchmarks for overriding changes to a single prefab instance with a deeply nested prefab hierarchy inside it.
  15. class SingleInstanceOverrideBenchmarks : public PropagationBenchmarkFixture
  16. {
  17. protected:
  18. void SetupHarness(const benchmark::State& state) override;
  19. void TeardownHarness(const benchmark::State& state) override;
  20. AZStd::vector<AZ::Entity*> GetEntitiesToPutInNestedInstance(const unsigned int entityCount);
  21. };
  22. } // namespace Benchmark
  23. #endif