ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::sys Namespace Reference

System-level utilities (process memory measurement). More...

Functions

long get_peak_rss_bytes ()
 Get the peak resident set size (RSS) of the current process in bytes.
 

Detailed Description

System-level utilities (process memory measurement).

Function Documentation

◆ get_peak_rss_bytes()

long ppforest2::sys::get_peak_rss_bytes ( )

Get the peak resident set size (RSS) of the current process in bytes.

Uses platform-specific APIs: GetProcessMemoryInfo on Windows, getrusage on POSIX (macOS reports bytes, Linux reports KB * 1024).

Returns
Peak RSS in bytes, or -1 on failure.