[#BloombergLP-balb-PerformanceMonitor_LinuxProcStatistics] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::PerformanceMonitor_LinuxProcStatistics :relfileprefix: ../../ :mrdocs: Describes the fields present in /proc/<pid>/stat. For a complete description of each field, see `man proc`. == Synopsis Declared in `<balb_performancemonitor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct PerformanceMonitor_LinuxProcStatistics; ---- == Description Note that sizes of the data fields are defined in terms of scanf(3) format specifiers, such as %d, %lu or %c. There is no good way to know if %lu is 32‐bit wide or 64‐bit, because the code can be built in the ‐m32 mode making sizeof(unsigned long)==4 and executed on a 64bit platform where the kernel thinks that %lu can represent 64‐bit wide integers. Therefore we use `Uint64` regardless of the build configuration. == Type Aliases [cols="1"] |=== | Name | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/LdType.adoc[`LdType`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/LluType.adoc[`LluType`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/LuType.adoc[`LuType`] |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/2constructor.adoc[`PerformanceMonitor_LinuxProcStatistics`] [.small]#[constructor]# | Default construct all fields in this object. | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/parseProcStatString.adoc[`parseProcStatString`] | Parse the specified `procStatString` and populate all the fields in this `struct`. Check that the specified `pid` matches the `pid` field in the string. Return 0 on success and a non‐zero value otherwise. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/readProcStatString.adoc[`readProcStatString`] | For the specified process id `pid`, load the contents of the file `/proc/<pid>/stat` into the specified `buffer`. Return 0 on success and a non‐zero value otherwise. |=== == Data Members [cols="1"] |=== | Name | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_cmajflt.adoc[`d_cmajflt`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_cminflt.adoc[`d_cminflt`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_comm.adoc[`d_comm`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_cstime.adoc[`d_cstime`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_cutime.adoc[`d_cutime`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_flags.adoc[`d_flags`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_itrealvalue.adoc[`d_itrealvalue`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_majflt.adoc[`d_majflt`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_minflt.adoc[`d_minflt`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_nice.adoc[`d_nice`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_numThreads.adoc[`d_numThreads`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_pgrp.adoc[`d_pgrp`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_pid.adoc[`d_pid`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_ppid.adoc[`d_ppid`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_priority.adoc[`d_priority`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_rss.adoc[`d_rss`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_session.adoc[`d_session`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_starttime.adoc[`d_starttime`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_state.adoc[`d_state`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_stime.adoc[`d_stime`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_tpgid.adoc[`d_tpgid`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_tty_nr.adoc[`d_tty_nr`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_utime.adoc[`d_utime`] | xref:BloombergLP/balb/PerformanceMonitor_LinuxProcStatistics/d_vsize.adoc[`d_vsize`] |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#