Skip to main content

detect_fd_leak

Function detect_fd_leak 

Source
pub fn detect_fd_leak(
    history: &RingBuf<ResourceSample>,
    window: usize,
) -> Option<(usize, usize, usize)>
Expand description

Detect potential FD leaks from a series of FD count samples.

Returns Some((start, end, consecutive_increases)) if the last window samples all show a monotonic increase.