Skip to content

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

@zyf0330

Description

@zyf0330

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions