![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <v8-profiler.h>
Public Types | |
enum | WriteResult { kContinue = 0 , kAbort = 1 } |
Public Member Functions | |
virtual | ~OutputStream ()=default |
virtual void | EndOfStream ()=0 |
virtual int | GetChunkSize () |
virtual WriteResult | WriteAsciiChunk (char *data, int size)=0 |
virtual WriteResult | WriteHeapStatsChunk (HeapStatsUpdate *data, int count) |
An interface for exporting data from V8, using "push" model.
Definition at line 182 of file v8-profiler.h.
Enumerator | |
---|---|
kContinue | |
kAbort |
Definition at line 184 of file v8-profiler.h.
|
virtualdefault |
|
pure virtual |
Notify about the end of stream.
Implemented in v8::internal::FileOutputStream.
|
inlinevirtual |
Get preferred output chunk size. Called only once.
Definition at line 189 of file v8-profiler.h.
|
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.
Implemented in v8::internal::FileOutputStream.
|
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 201 of file v8-profiler.h.