v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <v8-profiler.h>
Public Member Functions | |
void | SetSamplingInterval (int us) |
void | StartProfiling (Handle< String > title, bool record_samples=false) |
void | StartCpuProfiling (Handle< String > title, bool record_samples=false) |
CpuProfile * | StopProfiling (Handle< String > title) |
const CpuProfile * | StopCpuProfiling (Handle< String > title) |
void | SetIdle (bool is_idle) |
Interface for controlling CPU profiling. Instance of the profiler can be retrieved using v8::Isolate::GetCpuProfiler.
Definition at line 144 of file v8-profiler.h.
void SetIdle | ( | bool | is_idle | ) |
Tells the profiler whether the embedder is idle.
Definition at line 7163 of file api.cc.
References ASSERT, v8::internal::EXTERNAL, v8::internal::IDLE, Isolate::js_entry_sp(), and NULL.
void SetSamplingInterval | ( | int | us | ) |
Deprecated. Use StartProfiling instead.
Definition at line 7146 of file api.cc.
Referenced by RunWithProfiler(), ProfilerExtension::StartProfiling(), and TEST().
Starts collecting CPU profile. Title may be an empty string. It is allowed to have several profiles being collected at once. Attempts to start collecting several profiles with the same title are silently ignored. While collecting a profile, functions from all security contexts are included in it. The token-based filtering is only performed when querying for a profile.
|record_samples| parameter controls whether individual samples should be recorded in addition to the aggregated tree.
Definition at line 7140 of file api.cc.
References Utils::OpenHandle().
const CpuProfile * StopCpuProfiling | ( | Handle< String > | title | ) |
Deprecated. Use StopProfiling instead.
Definition at line 7158 of file api.cc.
Referenced by ProfilerExtension::StopProfiling(), and TEST().
CpuProfile * StopProfiling | ( | Handle< String > | title | ) |
Stops collecting CPU profile with a given title and returns it. If the title given is empty, finishes the last profile started.
Definition at line 7151 of file api.cc.
References Utils::OpenHandle().