ONE - On-device Neural Engine
|
#include <EventWriter.h>
Public Types | |
enum class | WriteFormat { CHROME_TRACING , SNPE_BENCHMARK , MD_TABLE } |
Public Member Functions | |
void | startToUse () |
Call this when observer which use EventWriter starts. | |
void | readyToFlush (std::unique_ptr< EventRecorder > &&recorder) |
Call this when observer which use EventWriter finishes. After multiple observers calls this method, the reference count will eventually be 0. Then, EventWriter will write profiling result file. | |
Static Public Member Functions | |
static EventWriter * | get (const std::string &workspace_dir) |
Retuens a singleton object. | |
Definition at line 80 of file EventWriter.h.
|
strong |
Enumerator | |
---|---|
CHROME_TRACING | |
SNPE_BENCHMARK | |
MD_TABLE |
Definition at line 83 of file EventWriter.h.
|
inlinestatic |
Retuens a singleton object.
Definition at line 93 of file EventWriter.h.
Referenced by onert::exec::TracingObserver::~TracingObserver().
void EventWriter::readyToFlush | ( | std::unique_ptr< EventRecorder > && | recorder | ) |
Call this when observer which use EventWriter finishes. After multiple observers calls this method, the reference count will eventually be 0. Then, EventWriter will write profiling result file.
Definition at line 24 of file EventWriter.cc.
References CHROME_TRACING, MD_TABLE, and SNPE_BENCHMARK.
|
inline |
Call this when observer which use EventWriter starts.
Definition at line 104 of file EventWriter.h.