Skip to content

runtime: cheaper alternative to runtime.ReadMemStats #13613

@mkevac

Description

@mkevac

Hi.

runtime.ReadMemStats() calls stopTheWorld inside(), so it is very expensive to call it often (see https://github.com/mkevac/debugcharts). Especially in a production system.

I would like to see cheaper but maybe not so accurate alternative if it's possible.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions