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

Node v8.getCppHeapStatistics function | API Reference | Bun

Node v8.getCppHeapStatistics function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:v8/getCppHeapStatisticsFgetCppHeapStatistics

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:v8/getCppHeapStatisticsFgetCppHeapStatistics

function

v8.getCppHeapStatisticsfunction getCppHeapStatistics(detailLevel?: 'brief' | 'detailed'): object;

It returns an object with a structure similar to the cppgc::HeapStatistics object. See the V8 documentation for more information about the properties of the object.

// Detailed
({
committed_size_bytes: 131072,
resident_size_bytes: 131072,
used_size_bytes: 152,
space_statistics: [
{
name: 'NormalPageSpace0',
committed_size_bytes: 0,
resident_size_bytes: 0,
used_size_bytes: 0,
page_stats: [{}],
free_list_stats: {},
},
{
name: 'NormalPageSpace1',
committed_size_bytes: 131072,
resident_size_bytes: 131072,
used_size_bytes: 152,
page_stats: [{}],
free_list_stats: {},
},
{
name: 'NormalPageSpace2',
committed_size_bytes: 0,
resident_size_bytes: 0,
used_size_bytes: 0,
page_stats: [{}],
free_list_stats: {},
},
{
name: 'NormalPageSpace3',
committed_size_bytes: 0,
resident_size_bytes: 0,
used_size_bytes: 0,
page_stats: [{}],
free_list_stats: {},
},
{
name: 'LargePageSpace',
committed_size_bytes: 0,
resident_size_bytes: 0,
used_size_bytes: 0,
page_stats: [{}],
free_list_stats: {},
},
],
type_names: [],
detail_level: 'detailed',
});
// Brief
({
committed_size_bytes: 131072,
resident_size_bytes: 131072,
used_size_bytes: 128864,
space_statistics: [],
type_names: [],
detail_level: 'brief',
});
@param detailLevel

Default: 'detailed'. Specifies the level of detail in the returned statistics. Accepted values are:

'brief': Brief statistics contain only the top-level allocated and used memory statistics for the entire heap.'detailed': Detailed statistics also contain a break down per space and page, as well as freelist statistics and object type histograms.

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.getCppHeapStatistics function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:v8.getCppHeapStatistics | Bun