intel / intel/gprofiler

Improve get_process_golang_version()

Open
#696 1 comment 0 reactions 0 assignees View on GitHub
defined-and-prioritized performance
Dominant language
Python
Stars
826
Forks
79
PR merge metrics
No merged PRs in 30d

Description

The function accepts a `psutil.Process` and reads its /proc/pid/exe. It is cached on a per-Process basis, but Processes replace often and we can do smarter caching based on modification time of the absolute path of `/proc/pid/exe` based on the mnt ancestor, so `/proc/{get_mnt_ns_ancestor(process)}/root/path/to/exe`.

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.