htop/darwin
Charlie Vieth d35db47c9a darwin: lazily set process TTY name
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.
2022-02-18 09:07:41 +01:00
..
DarwinProcess.c darwin: lazily set process TTY name 2022-02-18 09:07:41 +01:00
DarwinProcess.h darwin: lazily set process TTY name 2022-02-18 09:07:41 +01:00
DarwinProcessList.c Refactor Platform_CompareKernelVersion API 2021-09-26 10:58:47 -04:00
DarwinProcessList.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00
Platform.c Use correct command field as default field 2021-12-17 14:45:15 +01:00
Platform.h Mark ScreenDefaults const 2021-12-17 14:45:15 +01:00
PlatformHelpers.c Workaround for Rosetta 2 on Darwin 2021-09-26 10:58:47 -04:00
PlatformHelpers.h Workaround for Rosetta 2 on Darwin 2021-09-26 10:58:47 -04:00
ProcessField.h Update license headers to explicitly say GPLv2+ 2021-09-22 14:28:19 +02:00