google / google/pprof-nodejs

a delay is required after heap.start and heap.profile()

Open
#310 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
291
Forks
37
PR merge metrics
No merged PRs in 30d

Description

A delay about 5 second is required after heap.start and heap.profile(), otherwise a blank snapshot is produced.
This code reproduces.
```
pprof.heap.start(intervalBytes, stackDepth)
const profile = pprof.heap.profile()
const buf = await pprof.encode(profile)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.