ONE - On-device Neural Engine
Loading...
Searching...
No Matches
ChromeTracingWriter Class Reference

#include <EventWriter.h>

Collaboration diagram for ChromeTracingWriter:

Public Member Functions

 ChromeTracingWriter (const std::string &filepath)
 
 ~ChromeTracingWriter ()
 
void flush (const std::vector< std::unique_ptr< EventRecorder > > &) override
 
- Public Member Functions inherited from EventFormatWriter
 EventFormatWriter (const std::string &filepath)
 
virtual ~EventFormatWriter ()
 

Additional Inherited Members

- Protected Attributes inherited from EventFormatWriter
std::ofstream _os
 

Detailed Description

Definition at line 53 of file EventWriter.h.

Constructor & Destructor Documentation

◆ ChromeTracingWriter()

ChromeTracingWriter::ChromeTracingWriter ( const std::string &  filepath)

Definition at line 167 of file ChromeTracingEventWriter.cc.

167 : EventFormatWriter(filepath)
168{
169 _os << "{\n";
170 _os << " " << quote("traceEvents") << ": [\n";
171}
std::ofstream _os
Definition EventWriter.h:39

References EventFormatWriter::_os.

◆ ~ChromeTracingWriter()

ChromeTracingWriter::~ChromeTracingWriter ( )

Definition at line 173 of file ChromeTracingEventWriter.cc.

174{
175 _os << " { }\n";
176 _os << " ]\n";
177 _os << "}\n";
178}

References EventFormatWriter::_os.

Member Function Documentation

◆ flush()

void ChromeTracingWriter::flush ( const std::vector< std::unique_ptr< EventRecorder > > &  recorders)
overridevirtual

Implements EventFormatWriter.

Definition at line 180 of file ChromeTracingEventWriter.cc.

181{
182 for (const auto &recorder : recorders)
183 {
184 flushOneRecord(*recorder);
185 }
186}

The documentation for this class was generated from the following files: