mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-22 07:05:54 +00:00
30 lines
822 B
C++
30 lines
822 B
C++
//
|
|
// Copyright © 2020 Arm Ltd. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
#pragma once
|
|
|
|
#include "IBackendProfiling.hpp"
|
|
#include <armnn/IRuntime.hpp>
|
|
#include <vector>
|
|
|
|
namespace armnn
|
|
{
|
|
namespace profiling
|
|
{
|
|
|
|
class IBackendProfilingContext
|
|
{
|
|
public:
|
|
virtual ~IBackendProfilingContext()
|
|
{}
|
|
virtual uint16_t RegisterCounters(uint16_t currentMaxGlobalCounterID) = 0;
|
|
virtual Optional<std::string> ActivateCounters(uint32_t capturePeriod, const std::vector<uint16_t>& counterIds) = 0;
|
|
virtual std::vector<Timestamp> ReportCounterValues() = 0;
|
|
virtual bool EnableProfiling(bool flag) = 0;
|
|
virtual bool EnableTimelineReporting(bool flag) = 0;
|
|
};
|
|
|
|
using IBackendProfilingContextUniquePtr = std::unique_ptr<IBackendProfilingContext>;
|
|
} // namespace profiling
|
|
} // namespace armnn
|