TracktionEngine
Classes | Enumerations | Functions
tracktion::engine::benchmark_utilities Namespace Reference

Classes

struct  BenchmarkOptions
 

Enumerations

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

Functions

juce::String getDescription (const BenchmarkOptions &opts)
 
std::unique_ptr< tracktion::graph::NodecreateNode (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< EditopenEditfromArchiveData (Engine &engine, const char *data, int size)
 
std::unique_ptr< EditloadEditFromValueTree (Engine &engine, const juce::ValueTree &editState)
 Loads an Edit from a value tree with no Project file references. More...
 
std::unique_ptr< EditopenEditFromZipData (Engine &engine, const void *data, size_t numBytes)
 Loads an Edit that was saved directly from the state to a GZip stream. More...
 

Enumeration Type Documentation

◆ MultiThreaded

Enumerator
no 
yes 

◆ LockFree

Enumerator
no 
yes 

◆ PoolMemoryAllocations

Enumerator
no 
yes 

Function Documentation

◆ getDescription()

juce::String tracktion::engine::benchmark_utilities::getDescription ( const BenchmarkOptions opts)

◆ createNode()

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

◆ prepareRenderAndDestroy()

template<typename NodePlayerType >
void tracktion::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]

void tracktion::engine::benchmark_utilities::renderEdit ( juce::UnitTest &  ut,
BenchmarkOptions  opts 
)

◆ renderEdit() [2/2]

void tracktion::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> tracktion::engine::benchmark_utilities::openEditfromArchiveData ( Engine engine,
const char *  data,
int  size 
)

◆ loadEditFromValueTree()

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

◆ openEditFromZipData()

std::unique_ptr<Edit> tracktion::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().