v8.getHeapCodeStatistics()


获取有关堆中代码及其元数据的统计信息,请参见 V8 GetHeapCodeAndMetadataStatistics API。返回一个具有以下属性的对象:

【Get statistics about code and its metadata in the heap, see V8 GetHeapCodeAndMetadataStatistics API. Returns an object with the following properties:】

{
  code_and_metadata_size: 212208,
  bytecode_and_metadata_size: 161368,
  external_script_source_size: 1410794,
  cpu_profiler_metadata_size: 0,
}