UNPKG

nstdlib-nightly

Version:

Node.js standard library converted to runtime-agnostic ES modules.

83 lines (48 loc) 3.35 kB
// Auto generated from Node.js v22.7.0 runtime export const heapStatisticsBuffer = new Float64Array(); export const heapCodeStatisticsBuffer = new Float64Array(); export const heapSpaceStatisticsBuffer = new Float64Array(); export const cachedDataVersionTag = (...args) => globalThis.node_binding_v8_cachedDataVersionTag?.(...args); export const setHeapSnapshotNearHeapLimit = (...args) => globalThis.node_binding_v8_setHeapSnapshotNearHeapLimit?.(...args); export const updateHeapStatisticsBuffer = (...args) => globalThis.node_binding_v8_updateHeapStatisticsBuffer?.(...args); export const updateHeapCodeStatisticsBuffer = (...args) => globalThis.node_binding_v8_updateHeapCodeStatisticsBuffer?.(...args); export const kHeapSpaces = [ "read_only_space", "new_space", "old_space", "code_space", "shared_space", "trusted_space", "new_large_object_space", "large_object_space", "code_large_object_space", "shared_large_object_space", "trusted_large_object_space" ]; export const updateHeapSpaceStatisticsBuffer = (...args) => globalThis.node_binding_v8_updateHeapSpaceStatisticsBuffer?.(...args); export const kTotalHeapSizeIndex = 0; export const kTotalHeapSizeExecutableIndex = 1; export const kTotalPhysicalSizeIndex = 2; export const kTotalAvailableSize = 3; export const kUsedHeapSizeIndex = 4; export const kHeapSizeLimitIndex = 5; export const kMallocedMemoryIndex = 6; export const kPeakMallocedMemoryIndex = 7; export const kDoesZapGarbageIndex = 8; export const kNumberOfNativeContextsIndex = 9; export const kNumberOfDetachedContextsIndex = 10; export const kTotalGlobalHandlesSizeIndex = 11; export const kUsedGlobalHandlesSizeIndex = 12; export const kExternalMemoryIndex = 13; export const kCodeAndMetadataSizeIndex = kTotalHeapSizeIndex; export const kBytecodeAndMetadataSizeIndex = kTotalHeapSizeExecutableIndex; export const kExternalScriptSourceSizeIndex = kTotalPhysicalSizeIndex; export const kCPUProfilerMetaDataSizeIndex = kTotalAvailableSize; export const kSpaceSizeIndex = kTotalHeapSizeIndex; export const kSpaceUsedSizeIndex = kTotalHeapSizeExecutableIndex; export const kSpaceAvailableSizeIndex = kTotalPhysicalSizeIndex; export const kPhysicalSpaceSizeIndex = kTotalAvailableSize; export const setFlagsFromString = (...args) => globalThis.node_binding_v8_setFlagsFromString?.(...args); export const GCProfiler = (...args) => globalThis.node_binding_v8_GCProfiler?.(...args); const __default_export__ = { heapStatisticsBuffer, heapCodeStatisticsBuffer, heapSpaceStatisticsBuffer, cachedDataVersionTag, setHeapSnapshotNearHeapLimit, updateHeapStatisticsBuffer, updateHeapCodeStatisticsBuffer, kHeapSpaces, updateHeapSpaceStatisticsBuffer, kTotalHeapSizeIndex, kTotalHeapSizeExecutableIndex, kTotalPhysicalSizeIndex, kTotalAvailableSize, kUsedHeapSizeIndex, kHeapSizeLimitIndex, kMallocedMemoryIndex, kPeakMallocedMemoryIndex, kDoesZapGarbageIndex, kNumberOfNativeContextsIndex, kNumberOfDetachedContextsIndex, kTotalGlobalHandlesSizeIndex, kUsedGlobalHandlesSizeIndex, kExternalMemoryIndex, kCodeAndMetadataSizeIndex, kBytecodeAndMetadataSizeIndex, kExternalScriptSourceSizeIndex, kCPUProfilerMetaDataSizeIndex, kSpaceSizeIndex, kSpaceUsedSizeIndex, kSpaceAvailableSizeIndex, kPhysicalSpaceSizeIndex, setFlagsFromString, GCProfiler }; export default __default_export__;