![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <allocation-tracker.h>
Classes | |
| struct | FunctionInfo |
| class | ScriptData |
Public Member Functions | |
| AllocationTracker (HeapObjectsMap *ids, StringsStorage *names) | |
| ~AllocationTracker () | |
| AllocationTracker (const AllocationTracker &)=delete | |
| AllocationTracker & | operator= (const AllocationTracker &)=delete |
| void | AllocationEvent (Address addr, int size) |
| AllocationTraceTree * | trace_tree () |
| const std::vector< FunctionInfo * > & | function_info_list () const |
| AddressToTraceMap * | address_to_trace () |
Private Types | |
| using | ScriptId = int |
| using | ScriptsDataMap = std::unordered_map<ScriptId, ScriptData> |
Private Member Functions | |
| unsigned | AddFunctionInfo (Tagged< SharedFunctionInfo > info, SnapshotObjectId id, Isolate *isolate) |
| String::LineEndsVector & | GetOrCreateLineEnds (Tagged< Script > script, Isolate *isolate) |
| Script::PositionInfo | GetScriptPositionInfo (Tagged< Script > script, Isolate *isolate, int start) |
| unsigned | functionInfoIndexForVMState (StateTag state) |
Private Attributes | |
| HeapObjectsMap * | ids_ |
| StringsStorage * | names_ |
| AllocationTraceTree | trace_tree_ |
| unsigned | allocation_trace_buffer_ [kMaxAllocationTraceLength] |
| std::vector< FunctionInfo * > | function_info_list_ |
| base::HashMap | id_to_function_info_index_ |
| unsigned | info_index_for_other_state_ |
| AddressToTraceMap | address_to_trace_ |
| ScriptsDataMap | scripts_data_map_ |
Static Private Attributes | |
| static const int | kMaxAllocationTraceLength = 64 |
Definition at line 103 of file allocation-tracker.h.
|
private |
Definition at line 147 of file allocation-tracker.h.
|
private |
Definition at line 161 of file allocation-tracker.h.
| v8::internal::AllocationTracker::AllocationTracker | ( | HeapObjectsMap * | ids, |
| StringsStorage * | names ) |
Definition at line 176 of file allocation-tracker.cc.
| v8::internal::AllocationTracker::~AllocationTracker | ( | ) |
Definition at line 186 of file allocation-tracker.cc.
|
delete |
|
private |
Definition at line 279 of file allocation-tracker.cc.
|
inline |
Definition at line 127 of file allocation-tracker.h.
| void v8::internal::AllocationTracker::AllocationEvent | ( | Address | addr, |
| int | size ) |
|
inline |
|
private |
|
private |
|
private |
Definition at line 267 of file allocation-tracker.cc.
|
delete |
|
inline |
|
private |
Definition at line 146 of file allocation-tracker.h.
|
private |
Definition at line 142 of file allocation-tracker.h.
|
private |
Definition at line 143 of file allocation-tracker.h.
|
private |
Definition at line 144 of file allocation-tracker.h.
|
private |
Definition at line 139 of file allocation-tracker.h.
|
private |
Definition at line 145 of file allocation-tracker.h.
|
staticprivate |
Definition at line 138 of file allocation-tracker.h.
|
private |
Definition at line 140 of file allocation-tracker.h.
|
private |
Definition at line 162 of file allocation-tracker.h.
|
private |
Definition at line 141 of file allocation-tracker.h.