Unity Scopes API
|
The OutOfProcessBenchmark class provides scope authors with runtime benchmarking capabilities. The actual runs are executed in another process. More...
#include <unity/scopes/testing/OutOfProcessBenchmark.h>
Public Member Functions | |
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... | |
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... | |
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... | |
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 OutOfProcessBenchmark class provides scope authors with runtime benchmarking capabilities. The actual runs are executed in another process.
Please note that this class provides better test isolation than the class InProcessBenchmark and we promote use of this implementation due to this feature. However, as the internal implementation relies on fork(), the results in case of multi-threaded environments that exist before the execution of the benchmark are undefined.
|
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. |
Reimplemented from unity::scopes::testing::InProcessBenchmark.
|
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. |
Reimplemented from unity::scopes::testing::InProcessBenchmark.
|
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. |
Reimplemented from unity::scopes::testing::InProcessBenchmark.
|
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. |
Reimplemented from unity::scopes::testing::InProcessBenchmark.