v8  4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
OutputStream Class Referenceabstract

#include <v8-profiler.h>

Public Types

enum  WriteResult { kContinue = 0 , kAbort = 1 }
 

Public Member Functions

virtual ~OutputStream ()
 
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.

Definition at line 312 of file v8-profiler.h.

Member Enumeration Documentation

◆ WriteResult

Enumerator
kContinue 
kAbort 

Definition at line 314 of file v8-profiler.h.

Constructor & Destructor Documentation

◆ ~OutputStream()

virtual ~OutputStream ( )
inlinevirtual

Definition at line 318 of file v8-profiler.h.

Member Function Documentation

◆ EndOfStream()

virtual void EndOfStream ( )
pure virtual

Notify about the end of stream.

◆ GetChunkSize()

virtual int GetChunkSize ( )
inlinevirtual

Get preferred output chunk size. Called only once.

Definition at line 322 of file v8-profiler.h.

◆ WriteAsciiChunk()

virtual WriteResult 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.

◆ WriteHeapStatsChunk()

virtual WriteResult 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.

Definition at line 334 of file v8-profiler.h.

References OutputStream::kAbort.


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