哪个是node.js上的V8当前值

时间:2020-12-04 16:57:33

When executing a node application, you can tweak a lot of v8 values.

执行节点应用程序时,您可以调整大量的v8值。

Is it somehow possible to check from the source code being executed the value of those options?

是否有可能从正在执行的源代码中检查这些选项的值?

My particular interest is on checking max_semi_space_size and max_old_space_size, in case the is a workaround to know those values.

我特别感兴趣的是检查max_semi_space_size和max_old_space_size,以防这是一个解决方法来了解这些值。

1 个解决方案

#1


1  

In node.js you can use the v8 module: https://nodejs.org/api/v8.html

在node.js中,您可以使用v8模块:https://nodejs.org/api/v8.html

You can also use this package. I think it suit you well:

您也可以使用此包。我觉得它很适合你:

https://www.npmjs.com/package/v8-flags

To list available flags: node --v8-options

列出可用标志:node --v8-options

#1


1  

In node.js you can use the v8 module: https://nodejs.org/api/v8.html

在node.js中,您可以使用v8模块:https://nodejs.org/api/v8.html

You can also use this package. I think it suit you well:

您也可以使用此包。我觉得它很适合你:

https://www.npmjs.com/package/v8-flags

To list available flags: node --v8-options

列出可用标志:node --v8-options