Unity Scopes API
|
The InProcessBenchmark class provides scope authors with runtime benchmarking capabilities. The actual runs are executed in the same process. More...
#include <unity/scopes/testing/InProcessBenchmark.h>
Public Member Functions | |
virtual Result | for_query (const std::shared_ptr< unity::scopes::ScopeBase > &scope, QueryConfiguration configuration) override |
for_query executes a benchmark to measure the scope's query performance. More... | |
virtual Result | for_preview (const std::shared_ptr< unity::scopes::ScopeBase > &scope, PreviewConfiguration preview_configuration) override |
for_preview executes a benchmark to measure the scope's preview performance. More... | |
virtual Result | for_activation (const std::shared_ptr< unity::scopes::ScopeBase > &scope, ActivationConfiguration activation_configuration) override |
for_preview executes a benchmark to measure the scope's activation performance. More... | |
virtual Result | for_action (const std::shared_ptr< unity::scopes::ScopeBase > &scope, ActionConfiguration activation_configuration) override |
for_preview executes a benchmark to measure the scope's action activation performance. More... | |
The InProcessBenchmark class provides scope authors with runtime benchmarking capabilities. The actual runs are executed in the same process.
|
overridevirtual |
for_preview executes a benchmark to measure the scope's action activation performance.
std::runtime_error | in case of timeouts. |
std::logic_error | in case of misconfiguration. |
scope | The scope instance to benchmark. |
configuration | Options controlling the experiment. |
Implements unity::scopes::testing::Benchmark.
Reimplemented in unity::scopes::testing::OutOfProcessBenchmark.
|
overridevirtual |
for_preview executes a benchmark to measure the scope's activation performance.
std::runtime_error | in case of timeouts. |
std::logic_error | in case of misconfiguration. |
scope | The scope instance to benchmark. |
configuration | Options controlling the experiment. |
Implements unity::scopes::testing::Benchmark.
Reimplemented in unity::scopes::testing::OutOfProcessBenchmark.
|
overridevirtual |
for_preview executes a benchmark to measure the scope's preview performance.
std::runtime_error | in case of timeouts. |
std::logic_error | in case of misconfiguration. |
scope | The scope instance to benchmark. |
configuration | Options controlling the experiment. |
Implements unity::scopes::testing::Benchmark.
Reimplemented in unity::scopes::testing::OutOfProcessBenchmark.
|
overridevirtual |
for_query executes a benchmark to measure the scope's query performance.
std::runtime_error | in case of timeouts. |
std::logic_error | in case of misconfiguration. |
scope | The scope instance to benchmark. |
configuration | Options controlling the experiment. |
Implements unity::scopes::testing::Benchmark.
Reimplemented in unity::scopes::testing::OutOfProcessBenchmark.