mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 23:15:46 +00:00
d35db47c9a
Fetching the TTY name of a process is extremely expensive on darwin and the call to devname accounts for 95% of htop's CPU usage when there is high process turnover (this is mostly due to devname calling lstat, which is incredibly slow). This can make htop unresponsive. To mitigate this only set the process TTY name if the it is being actively displayed (PROCESS_FLAG_TTY), which by default it is not on darwin. |
||
---|---|---|
.. | ||
DarwinProcess.c | ||
DarwinProcess.h | ||
DarwinProcessList.c | ||
DarwinProcessList.h | ||
Platform.c | ||
Platform.h | ||
PlatformHelpers.c | ||
PlatformHelpers.h | ||
ProcessField.h |