Skip to content

get boot time each time cost too much cpu #1070

Open
@hz-kelpie

Description

i use process.NewProcess(pid) 1000 processes per second
but common.BootTimeWithContext() runs every time,it depends on syscall.Syscall, it's blocked
maybe there's some way I don't know to cache the Process.starttime?
thx~

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions