V8 Project
|
An interface for exporting data from V8, using "push" model. More...
#include <v8-profiler.h>
Public Types | |
enum | WriteResult { kContinue = 0 , kAbort = 1 } |
Public Member Functions | |
virtual | ~OutputStream () |
virtual void | EndOfStream ()=0 |
Notify about the end of stream. More... | |
virtual int | GetChunkSize () |
Get preferred output chunk size. More... | |
virtual WriteResult | WriteAsciiChunk (char *data, int size)=0 |
Writes the next chunk of snapshot data into the stream. More... | |
virtual WriteResult | WriteHeapStatsChunk (HeapStatsUpdate *data, int count) |
Writes the next chunk of heap stats data into the stream. More... | |
An interface for exporting data from V8, using "push" model.
Definition at line 272 of file v8-profiler.h.
|
inlinevirtual |
Definition at line 278 of file v8-profiler.h.
|
pure virtual |
Notify about the end of stream.
Referenced by v8::internal::OutputStreamWriter::Finalize(), and v8::internal::HeapObjectsMap::PushHeapObjectsStats().
|
inlinevirtual |
Get preferred output chunk size.
Called only once.
Definition at line 282 of file v8-profiler.h.
Referenced by v8::internal::HeapObjectsMap::PushHeapObjectsStats(), and v8::HeapSnapshot::Serialize().
|
pure virtual |
Writes the next chunk of snapshot data into the stream.
Writing can be stopped by returning kAbort as function result. EndOfStream will not be called in case writing was aborted.
Referenced by v8::internal::OutputStreamWriter::WriteChunk().
|
inlinevirtual |
Writes the next chunk of heap stats data into the stream.
Writing can be stopped by returning kAbort as function result. EndOfStream will not be called in case writing was aborted.
Definition at line 294 of file v8-profiler.h.
Referenced by v8::internal::HeapObjectsMap::PushHeapObjectsStats().