Skip to main content
getHeapCodeStatistics - node__v8.d.ts - Node documentation
function getHeapCodeStatistics

Usage in Deno

```typescript import { getHeapCodeStatistics } from "node:node__v8.d.ts"; ```
getHeapCodeStatistics(): HeapCodeStatistics
Get statistics about code and its metadata in the heap, see V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the following properties: ```js { code_and_metadata_size: 212208, bytecode_and_metadata_size: 161368, external_script_source_size: 1410794, cpu_profiler_metadata_size: 0, } ```

Return Type