ArmNN  NotReleased
IProfiler.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <iostream>
9 
10 namespace armnn
11 {
12 
13 class IProfiler
14 {
15 public:
18  virtual void EnableProfiling(bool enableProfiling) = 0;
19 
23  virtual bool IsProfilingEnabled() = 0;
24 
28  virtual void AnalyzeEventsAndWriteResults(std::ostream& outStream) const = 0;
29 
32  virtual void Print(std::ostream& outStream) const = 0;
33 
34 protected:
36 };
37 
38 } // namespace armnn
virtual void EnableProfiling(bool enableProfiling)=0
virtual void AnalyzeEventsAndWriteResults(std::ostream &outStream) const =0
virtual void Print(std::ostream &outStream) const =0
virtual bool IsProfilingEnabled()=0