# Functions
NumFDs returns the number of file descriptors for a given process.
NumFDsWithBatchSleep is the same as NumFDs but it throttles itself to prevent excessive CPU usages for processes with a lot of file descriptors.
NumFDsWithDefaultBatchSleep is the same as NumFDsWithBatchSleep except it uses the default value for the batchSleepDurationMultiplier.