![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <profile-generator.h>
Public Member Functions | |
| StringsStorage (Heap *heap) | |
| ~StringsStorage () | |
| const char * | GetCopy (const char *src) |
| const char * | GetFormatted (const char *format,...) |
| const char * | GetVFormatted (const char *format, va_list args) |
| const char * | GetName (Name *name) |
| const char * | GetName (int index) |
| const char * | GetFunctionName (Name *name) |
| const char * | GetFunctionName (const char *name) |
| size_t | GetUsedMemorySize () const |
Definition at line 42 of file profile-generator.h.
|
explicit |
Definition at line 50 of file profile-generator.cc.
| ~StringsStorage | ( | ) |
Definition at line 55 of file profile-generator.cc.
References v8::internal::DeleteArray(), TemplateHashMapImpl< AllocationPolicy >::Next(), v8::internal::NULL, and TemplateHashMapImpl< AllocationPolicy >::Start().
| const char * GetCopy | ( | const char * | src | ) |
Definition at line 64 of file profile-generator.cc.
References Vector< T >::New(), v8::internal::NULL, Vector< T >::start(), and OS::StrNCpy().
Referenced by BasicHeapEntriesAllocator::AllocateEntry(), StringsStorage::GetFunctionName(), and StringsStorage::GetVFormatted().
| const char * GetFormatted | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 78 of file profile-generator.cc.
References StringsStorage::GetVFormatted().
Referenced by BasicHeapEntriesAllocator::AllocateEntry(), StringsStorage::GetName(), V8HeapExplorer::TagBuiltinCodeObject(), and V8HeapExplorer::TagCodeObject().
| const char * GetFunctionName | ( | Name * | name | ) |
Definition at line 132 of file profile-generator.cc.
References StringsStorage::GetName().
Referenced by CpuProfilesCollection::GetFunctionName().
| const char * GetFunctionName | ( | const char * | name | ) |
Definition at line 137 of file profile-generator.cc.
References StringsStorage::GetCopy().
| const char * GetName | ( | Name * | name | ) |
Definition at line 111 of file profile-generator.cc.
References String::cast(), SmartPointerBase< Deallocator, T >::Detach(), v8::internal::DISALLOW_NULLS, String::length(), v8::internal::Min(), v8::internal::ROBUST_STRING_TRAVERSAL, and String::ToCString().
Referenced by StringsStorage::GetFunctionName(), CpuProfilesCollection::GetName(), and SnapshotFiller::SetNamedAutoIndexReference().
| const char * GetName | ( | int | index | ) |
Definition at line 127 of file profile-generator.cc.
References StringsStorage::GetFormatted().
| size_t GetUsedMemorySize | ( | ) | const |
Definition at line 147 of file profile-generator.cc.
References TemplateHashMapImpl< AllocationPolicy >::capacity(), TemplateHashMapImpl< AllocationPolicy >::Next(), v8::internal::NULL, v8::internal::size, and TemplateHashMapImpl< AllocationPolicy >::Start().
| const char * GetVFormatted | ( | const char * | format, |
| va_list | args | ||
| ) |
Definition at line 100 of file profile-generator.cc.
References v8::internal::DeleteArray(), StringsStorage::GetCopy(), Vector< T >::New(), Vector< T >::start(), and OS::VSNPrintF().
Referenced by StringsStorage::GetFormatted().