ocean.sys.stats.linux.ProcVFS

Contains API to obtain various information about the running application from /proc VFS.

Members

Functions

getOpenFdCount
int getOpenFdCount()

Gets the number of the fd open in a process.

getProcMemInfo
ProcMemInfo getProcMemInfo()
getProcSelfStat
ProcStat getProcSelfStat()

Parses /proc/self/stat and extracts the data.

getProcSelfStat
bool getProcSelfStat(ProcStat stat)

Parses /proc/self/stat and extracts the data.

getProcStat
ProcStat getProcStat(cstring path)

Reads /proc/<pid>/stat and extracts the data.

getProcStat
bool getProcStat(cstring path, ProcStat stat)

Reads /proc/<pid>/stat and extracts the data.

getProcUptime
ProcUptime getProcUptime()

Parses and returns data found in /proc/uptime.

getTotalMemoryInBytes
ulong getTotalMemoryInBytes()

Structs

ProcMemInfo
struct ProcMemInfo

Information reported by /proc/meminfo file

ProcStat
struct ProcStat

Information reported by /proc/pid/stat file

ProcUptime
struct ProcUptime

Structure representing data found in /proc/uptime.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).