温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/v8/getHeapSpaceStatistics
点击访问原文链接

Node v8.getHeapSpaceStatistics function | API Reference | Bun

Node v8.getHeapSpaceStatistics function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:v8/getHeapSpaceStatisticsFgetHeapSpaceStatistics

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:v8/getHeapSpaceStatisticsFgetHeapSpaceStatistics

function

v8.getHeapSpaceStatisticsfunction getHeapSpaceStatistics(): HeapSpaceInfo[];

Returns statistics about the V8 heap spaces, i.e. the segments which make up the V8 heap. Neither the ordering of heap spaces, nor the availability of a heap space can be guaranteed as the statistics are provided via the V8 GetHeapSpaceStatistics function and may change from one V8 version to the next.

The value returned is an array of objects containing the following properties:

[
{
"space_name": "new_space",
"space_size": 2063872,
"space_used_size": 951112,
"space_available_size": 80824,
"physical_space_size": 2063872
},
{
"space_name": "old_space",
"space_size": 3090560,
"space_used_size": 2493792,
"space_available_size": 0,
"physical_space_size": 3090560
},
{
"space_name": "code_space",
"space_size": 1260160,
"space_used_size": 644256,
"space_available_size": 960,
"physical_space_size": 1260160
},
{
"space_name": "map_space",
"space_size": 1094160,
"space_used_size": 201608,
"space_available_size": 0,
"physical_space_size": 1094160
},
{
"space_name": "large_object_space",
"space_size": 0,
"space_used_size": 0,
"space_available_size": 1490980608,
"physical_space_size": 0
}
]
Referenced typesinterface HeapSpaceInfophysical_space_size: numberspace_available_size: numberspace_name: stringspace_size: numberspace_used_size: number

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node v8.getHeapSpaceStatistics function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:v8.getHeapSpaceStatistics | Bun