v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
|
#include <v8-profiler.h>
Public Member Functions | |
Local< String > | GetTitle () const |
const CpuProfileNode * | GetTopDownRoot () const |
int | GetSamplesCount () const |
const CpuProfileNode * | GetSample (int index) const |
int64_t | GetSampleTimestamp (int index) const |
int64_t | GetStartTime () const |
StateTag | GetSampleState (int index) const |
EmbedderStateTag | GetSampleEmbedderState (int index) const |
int64_t | GetEndTime () const |
void | Delete () |
CpuProfile contains a CPU profile in a form of top-down call tree (from main() down to functions that do all the work).
Definition at line 183 of file v8-profiler.h.
void Delete | ( | ) |
Deletes the profile and removes it from CpuProfiler's list. All pointers to nodes previously returned become invalid.
int64_t GetEndTime | ( | ) | const |
Returns time when the profile recording was stopped (in microseconds) since some unspecified starting point. The point is equal to the starting point used by GetStartTime.
const CpuProfileNode * GetSample | ( | int | index | ) | const |
Returns profile node corresponding to the top frame the sample at the given index.
EmbedderStateTag GetSampleEmbedderState | ( | int | index | ) | const |
Returns state of the embedder when sample was captured.
int GetSamplesCount | ( | ) | const |
Returns number of samples recorded. The samples are not recorded unless |record_samples| parameter of CpuProfiler::StartCpuProfiling is true.
StateTag GetSampleState | ( | int | index | ) | const |
Returns state of the vm when sample was captured.
int64_t GetSampleTimestamp | ( | int | index | ) | const |
Returns the timestamp of the sample. The timestamp is the number of microseconds since some unspecified starting point. The point is equal to the starting point used by GetStartTime.
int64_t GetStartTime | ( | ) | const |
Returns time when the profile recording was started (in microseconds) since some unspecified starting point.
const CpuProfileNode * GetTopDownRoot | ( | ) | const |
Returns the root node of the top down call tree.