|
Ultralight C++ API 2.0.0
|
#include <Ultralight/js/Context.h>
Counts of the live handles on one context, for finding leaks (see Context::GetHandleStats()).
Public Member Functions | |
| size_t | count (Type type) const |
| Get the number of live value handles of one type. | |
| size_t | ProtectedEstimate () const |
| Count the value handles that keep something from being garbage collected (strings, symbols, BigInts, and objects). | |
Public Attributes | |
| size_t | total_values = 0 |
| Live value handles. | |
| size_t | values_by_type [kULJSType_Count] = {} |
| Live value handles by js::Type (see count()). | |
| size_t | weak_refs = 0 |
| Live weak references (0 once the context is gone). | |
|
inline |
Get the number of live value handles of one type.
| type | The value type. |
|
inline |
Count the value handles that keep something from being garbage collected (strings, symbols, BigInts, and objects).
| size_t total_values = 0 |
Live value handles.
| size_t weak_refs = 0 |
Live weak references (0 once the context is gone).