TracktionEngine
Loading...
Searching...
No Matches
engine::benchmark_utilities Namespace Reference

Classes

struct  BenchmarkOptions

Enumerations

enum class  MultiThreaded { no , yes }
enum class  LockFree { no , yes }
enum class  PoolMemoryAllocations { no , yes }
enum class  ShareNodeMemory { no , yes }

Functions

juce::String getDescription (const BenchmarkOptions &opts)
std::unique_ptr< tracktion::graph::Node > createNode (Edit &edit, ProcessState &processState, double sampleRate, int blockSize)
template<typename NodePlayerType>
void prepareRenderAndDestroy (juce::UnitTest &ut, juce::String editName, juce::String description, tracktion::graph::test_utilities::TestProcess< NodePlayerType > &testContext, tracktion::graph::PlayHeadState &playHeadState, MultiThreaded isMultiThreaded)
void renderEdit (juce::UnitTest &ut, BenchmarkOptions opts)
void renderEdit (juce::UnitTest &ut, juce::String editName, Edit &edit, tracktion::graph::test_utilities::TestSetup ts, MultiThreaded isMultiThreaded, LockFree isLockFree, tracktion::graph::ThreadPoolStrategy poolType)
std::unique_ptr< Edit > openEditfromArchiveData (Engine &engine, const char *data, int size)
std::unique_ptr< Edit > loadEditFromValueTree (Engine &engine, const juce::ValueTree &editState)
 Loads an Edit from a value tree with no Project file references.
std::unique_ptr< Edit > openEditFromZipData (Engine &engine, const void *data, size_t numBytes)
 Loads an Edit that was saved directly from the state to a GZip stream.

Enumeration Type Documentation

◆ MultiThreaded

Enumerator
no 
yes 

◆ LockFree

Enumerator
no 
yes 

◆ PoolMemoryAllocations

Enumerator
no 
yes 

◆ ShareNodeMemory

Enumerator
no 
yes 

Function Documentation

◆ getDescription()

◆ createNode()

std::unique_ptr< tracktion::graph::Node > engine::benchmark_utilities::createNode ( Edit & edit,
ProcessState & processState,
double sampleRate,
int blockSize )

◆ prepareRenderAndDestroy()

template<typename NodePlayerType>
void engine::benchmark_utilities::prepareRenderAndDestroy ( juce::UnitTest & ut,
juce::String editName,
juce::String description,
tracktion::graph::test_utilities::TestProcess< NodePlayerType > & testContext,
tracktion::graph::PlayHeadState & playHeadState,
MultiThreaded isMultiThreaded )

◆ renderEdit() [1/2]

◆ renderEdit() [2/2]

void engine::benchmark_utilities::renderEdit ( juce::UnitTest & ut,
juce::String editName,
Edit & edit,
tracktion::graph::test_utilities::TestSetup ts,
MultiThreaded isMultiThreaded,
LockFree isLockFree,
tracktion::graph::ThreadPoolStrategy poolType )

References renderEdit().

◆ openEditfromArchiveData()

std::unique_ptr< Edit > engine::benchmark_utilities::openEditfromArchiveData ( Engine & engine,
const char * data,
int size )

◆ loadEditFromValueTree()

std::unique_ptr< Edit > engine::benchmark_utilities::loadEditFromValueTree ( Engine & engine,
const juce::ValueTree & editState )

◆ openEditFromZipData()

std::unique_ptr< Edit > engine::benchmark_utilities::openEditFromZipData ( Engine & engine,
const void * data,
size_t numBytes )

Loads an Edit that was saved directly from the state to a GZip stream.

References loadEditFromValueTree(), and openEditFromZipData().

Referenced by openEditFromZipData().