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,
      }