V8 API Reference Guide for node.js v9.9.0
Public Types | Public Member Functions | List of all members
v8::OutputStream Class Referenceabstract

#include <v8-profiler.h>

Public Types

enum  WriteResult { kContinue = 0, kAbort = 1 }
 

Public Member Functions

virtual void EndOfStream ()=0
 
virtual int GetChunkSize ()
 
virtual WriteResult WriteAsciiChunk (char *data, int size)=0
 
virtual WriteResult WriteHeapStatsChunk (HeapStatsUpdate *data, int count)
 

Detailed Description

An interface for exporting data from V8, using "push" model.

Member Function Documentation

virtual void v8::OutputStream::EndOfStream ( )
pure virtual

Notify about the end of stream.

virtual int v8::OutputStream::GetChunkSize ( )
inlinevirtual

Get preferred output chunk size. Called only once.

virtual WriteResult v8::OutputStream::WriteAsciiChunk ( char *  data,
int  size 
)
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.

virtual WriteResult v8::OutputStream::WriteHeapStatsChunk ( HeapStatsUpdate data,
int  count 
)
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.


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