# readHeap

`import { readHeap } from "destack:runtime";`

Read one worker heap summary.

```ds title="readHeap"
export declare function readHeap(view: WorldViewHandle, worker: WorkerId): Result<HeapSummary, HostError>
```

[language/library/src/runtime/heap.ds:65:68](https://github.com/destack-sh/destack/blob/main/language/library/src/runtime/heap.ds#L65-L68)
