![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <sampling-heap-profiler.h>
Classes | |
| class | AllocationNode |
| class | Observer |
| struct | Sample |
Public Member Functions | |
| SamplingHeapProfiler (Heap *heap, StringsStorage *names, uint64_t rate, int stack_depth, v8::HeapProfiler::SamplingFlags flags) | |
| ~SamplingHeapProfiler () | |
| SamplingHeapProfiler (const SamplingHeapProfiler &)=delete | |
| SamplingHeapProfiler & | operator= (const SamplingHeapProfiler &)=delete |
| v8::AllocationProfile * | GetAllocationProfile () |
| StringsStorage * | names () const |
Private Member Functions | |
| void | SampleObject (Address soon_object, size_t size) |
| const std::vector< v8::AllocationProfile::Sample > | BuildSamples () const |
| AllocationNode * | FindOrAddChildNode (AllocationNode *parent, const char *name, int script_id, int start_position) |
| uint32_t | next_node_id () |
| uint64_t | next_sample_id () |
| v8::AllocationProfile::Node * | TranslateAllocationNode (AllocationProfile *profile, SamplingHeapProfiler::AllocationNode *node, const std::map< int, Handle< Script > > &scripts) |
| v8::AllocationProfile::Allocation | ScaleSample (size_t size, unsigned int count) const |
| AllocationNode * | AddStack () |
Static Private Member Functions | |
| static void | OnWeakCallback (const WeakCallbackInfo< Sample > &data) |
Private Attributes | |
| Isolate *const | isolate_ |
| Heap *const | heap_ |
| uint64_t | last_sample_id_ = 0 |
| uint32_t | last_node_id_ = 0 |
| Observer | allocation_observer_ |
| StringsStorage *const | names_ |
| AllocationNode | profile_root_ |
| std::unordered_map< Sample *, std::unique_ptr< Sample > > | samples_ |
| const int | stack_depth_ |
| const uint64_t | rate_ |
| v8::HeapProfiler::SamplingFlags | flags_ |
Definition at line 46 of file sampling-heap-profiler.h.
| v8::internal::SamplingHeapProfiler::SamplingHeapProfiler | ( | Heap * | heap, |
| StringsStorage * | names, | ||
| uint64_t | rate, | ||
| int | stack_depth, | ||
| v8::HeapProfiler::SamplingFlags | flags ) |
| v8::internal::SamplingHeapProfiler::~SamplingHeapProfiler | ( | ) |
|
delete |
|
private |
Definition at line 153 of file sampling-heap-profiler.cc.
|
private |
Definition at line 307 of file sampling-heap-profiler.cc.
|
private |
Definition at line 138 of file sampling-heap-profiler.cc.
| v8::AllocationProfile * v8::internal::SamplingHeapProfiler::GetAllocationProfile | ( | ) |
|
inline |
Definition at line 126 of file sampling-heap-profiler.h.
|
inlineprivate |
Definition at line 169 of file sampling-heap-profiler.h.
|
inlineprivate |
Definition at line 170 of file sampling-heap-profiler.h.
|
staticprivate |
Definition at line 104 of file sampling-heap-profiler.cc.
|
delete |
Definition at line 76 of file sampling-heap-profiler.cc.
|
private |
Definition at line 46 of file sampling-heap-profiler.cc.
|
private |
Definition at line 235 of file sampling-heap-profiler.cc.
|
private |
Definition at line 190 of file sampling-heap-profiler.h.
|
private |
Definition at line 196 of file sampling-heap-profiler.h.
|
private |
Definition at line 187 of file sampling-heap-profiler.h.
|
private |
Definition at line 186 of file sampling-heap-profiler.h.
|
private |
Definition at line 189 of file sampling-heap-profiler.h.
|
private |
Definition at line 188 of file sampling-heap-profiler.h.
|
private |
Definition at line 191 of file sampling-heap-profiler.h.
|
private |
Definition at line 192 of file sampling-heap-profiler.h.
|
private |
Definition at line 195 of file sampling-heap-profiler.h.
|
private |
Definition at line 193 of file sampling-heap-profiler.h.
|
private |
Definition at line 194 of file sampling-heap-profiler.h.