Add benchmarks to GradientSignal. (#6616)
* Add benchmarks to GradientSignal. Cleaned up and rearranged a bit of the unit testing code to make it reusable from a benchmark suite as well. Added set of benchmarks for measuring GetValue(), so that we can compare against GetValues() when it gets added. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fixed Editor unit tests. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "Tests/GradientSignalTestMocks.h"
|
||||
#include <Tests/GradientSignalTestFixtures.h>
|
||||
#include <GradientSignal/Editor/EditorGradientPreviewRenderer.h>
|
||||
|
||||
#include <AzTest/AzTest.h>
|
||||
@@ -28,7 +28,6 @@ namespace UnitTest
|
||||
void SetUp() override
|
||||
{
|
||||
GradientSignalTest::SetUp();
|
||||
AZ::AllocatorInstance<AZ::ThreadPoolAllocator>::Create();
|
||||
|
||||
// Set up job manager with two threads so that we can run and test the preview job logic.
|
||||
AZ::JobManagerDesc desc;
|
||||
@@ -46,7 +45,6 @@ namespace UnitTest
|
||||
delete m_jobContext;
|
||||
delete m_jobManager;
|
||||
|
||||
AZ::AllocatorInstance<AZ::ThreadPoolAllocator>::Destroy();
|
||||
GradientSignalTest::TearDown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user