Unity Scopes API
OutOfProcessBenchmark.h
1 /*
2  * Copyright (C) 2013 Canonical Ltd
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Thomas Voß <thomas.voss@canonical.com>
17  */
18 
19 #pragma once
20 
21 #include <unity/scopes/testing/InProcessBenchmark.h>
22 
23 namespace unity
24 {
25 
26 namespace scopes
27 {
28 class ScopeBase;
29 
30 namespace testing
31 {
32 
61 {
62 public:
63  OutOfProcessBenchmark() = default;
64 
65  Result for_query(const std::shared_ptr<unity::scopes::ScopeBase>& scope,
66  QueryConfiguration configuration) override;
67 
68  Result for_preview(const std::shared_ptr<unity::scopes::ScopeBase>& scope,
69  PreviewConfiguration preview_configuration) override;
70 
71  Result for_activation(const std::shared_ptr<unity::scopes::ScopeBase>& scope,
72  ActivationConfiguration activation_configuration) override;
73 
74  Result for_action(const std::shared_ptr<unity::scopes::ScopeBase>& scope,
75  ActionConfiguration activation_configuration) override;
76 };
77 
78 } // namespace testing
79 
80 } // namespace scopes
81 
82 } // namespace unity
The ActionConfiguration struct constains all options controlling the benchmark of scope action activa...
Definition: Benchmark.h:269
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.
The InProcessBenchmark class provides scope authors with runtime benchmarking capabilities. The actual runs are executed in the same process.
Definition: InProcessBenchmark.h:54
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.
Definition: OnlineAccountClient.h:39
The PreviewConfiguration struct constains all options controlling the benchmark of scope preview oper...
Definition: Benchmark.h:224
The ActivationConfiguration struct constains all options controlling the benchmark of scope activatio...
Definition: Benchmark.h:247
Top-level namespace for all things Unity-related.
Definition: Version.h:49
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.
The Result struct encapsulates all of the result gathered from one individual benchmark run consistin...
Definition: Benchmark.h:54
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.
The OutOfProcessBenchmark class provides scope authors with runtime benchmarking capabilities. The actual runs are executed in another process.
Definition: OutOfProcessBenchmark.h:60
The QueryConfiguration struct constains all options controlling the benchmark of scope query operatio...
Definition: Benchmark.h:202