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

Node v8.setFlagsFromString function | API Reference | Bun

Node v8.setFlagsFromString function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:v8/setFlagsFromStringFsetFlagsFromString

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:v8/setFlagsFromStringFsetFlagsFromString

function

v8.setFlagsFromString { v8.setFlagsFromString('--notrace_gc'); }, 60e3); ```" data-algolia-static="false" data-algolia-merged="false" data-type="Function">function setFlagsFromString(flags: string): void;

The v8.setFlagsFromString() method can be used to programmatically set V8 command-line flags. This method should be used with care. Changing settings after the VM has started may result in unpredictable behavior, including crashes and data loss; or it may simply do nothing.

The V8 options available for a version of Node.js may be determined by running node --v8-options.

Usage:

// Print GC events to stdout for one minute.
import v8 from 'node:v8';
v8.setFlagsFromString('--trace_gc');
setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);

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

    API documentation for function node:v8.setFlagsFromString | Bun