tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
tracktion::engine::BenchmarkList Class Reference

Contans a list of BenchmarkResult[s]. More...

#include "tracktion_Benchmark.h"

Public Member Functions

 BenchmarkList ()=default
 Constructs a BenchmarkList.
 
void addResult (BenchmarkResult r)
 Adds a result to the list.
 
std::vector< BenchmarkResultgetResults () const
 Returns all the results.
 
void clear ()
 Removes all the current results.
 

Static Public Member Functions

static BenchmarkListgetInstance ()
 Gets the singleton instance.
 

Detailed Description

Contans a list of BenchmarkResult[s].

For easy use, this can be used as a singleton so results can easily be added to it from anywhere in your code.

Once you've finished benchmarking, you can get all the results to publish them to your database.

Definition at line 109 of file tracktion_Benchmark.h.

Constructor & Destructor Documentation

◆ BenchmarkList()

tracktion::engine::BenchmarkList::BenchmarkList ( )
default

Constructs a BenchmarkList.

See also
getInstance

Member Function Documentation

◆ addResult()

void tracktion::engine::BenchmarkList::addResult ( BenchmarkResult  r)

Adds a result to the list.

[[ thread_safe ]]

Definition at line 116 of file tracktion_Benchmark.h.

◆ clear()

void tracktion::engine::BenchmarkList::clear ( )

Removes all the current results.

[[ thread_safe ]]

Definition at line 130 of file tracktion_Benchmark.h.

◆ getInstance()

static BenchmarkList & tracktion::engine::BenchmarkList::getInstance ( )
static

Gets the singleton instance.

[[ thread_safe ]]

Definition at line 137 of file tracktion_Benchmark.h.

◆ getResults()

std::vector< BenchmarkResult > tracktion::engine::BenchmarkList::getResults ( ) const

Returns all the results.

[[ thread_safe ]]

Definition at line 123 of file tracktion_Benchmark.h.


The documentation for this class was generated from the following file: