Module fd

Source
Expand description

Get file descriptor(say handle for windows) numbers for current process.

use perf_monitor::fd::fd_count_cur;

let count = fd_count_cur().unwrap();

§Bottom Layer Interface

§Other Process

For windows, linux and android(maybe), it is possible to get fd number of other process. However we didn’t re-export these function because macos and ios is not supported.

Functions§

fd_count_cur
return the fd count of current process