Skip to content

runtime/pprof: Documentation of SetCPUProfileRate #21243

@tpudlik

Description

@tpudlik

The docstring for SetCPUProfileRate states,

Most clients should use the runtime/pprof package or the testing package's -test.cpuprofile flag instead of calling SetCPUProfileRate directly.

However, the -test.cpuprofile flag does not allow you to set the CPU profile rate, only the name of the file to which the profile should be written out to. The sentence quoted above should probably be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions