aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon/test/MockBackend.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/backendsCommon/test/MockBackend.hpp')
-rw-r--r--src/backends/backendsCommon/test/MockBackend.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/backends/backendsCommon/test/MockBackend.hpp b/src/backends/backendsCommon/test/MockBackend.hpp
index 6e415b9b52..e1570ff920 100644
--- a/src/backends/backendsCommon/test/MockBackend.hpp
+++ b/src/backends/backendsCommon/test/MockBackend.hpp
@@ -32,6 +32,7 @@ public:
MockBackendProfilingContext(IBackendInternal::IBackendProfilingPtr& backendProfiling)
: m_BackendProfiling(std::move(backendProfiling))
, m_CapturePeriod(0)
+ , m_IsTimelineEnabled(true)
{}
~MockBackendProfilingContext() = default;
@@ -93,10 +94,22 @@ public:
return true;
}
+ bool EnableTimelineReporting(bool isEnabled)
+ {
+ m_IsTimelineEnabled = isEnabled;
+ return isEnabled;
+ }
+
+ bool TimelineReportingEnabled()
+ {
+ return m_IsTimelineEnabled;
+ }
+
private:
IBackendInternal::IBackendProfilingPtr m_BackendProfiling;
uint32_t m_CapturePeriod;
std::vector<uint16_t> m_ActiveCounters;
+ bool m_IsTimelineEnabled;
};
class MockBackendProfilingService