Gentoo:/proc/self

From Gentoo Linux Wiki

Jump to: navigation, search
This link is part of the Gentoo Structure index.
Parent Directory Linked to /proc/PID Related Links


[edit] About

A link to the currently running process. Points to an PID directory in /proc.

You can use it to find out interesting information about a job as it runs. For example, (using C++ syntax):

std::ifstream proc("/proc/self/status");

Will allow you to find out how much memory your current C++ program is taking up.

[edit] Links

Personal tools