summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcess.h
Commit message (Collapse)AuthorAgeFilesLines
* darwin: scan thread informationrobaho2024-04-211-1/+1
| | | | | | Inspired by: https://github.com/hishamhm/htop/pull/848 Closes: #542
* Rename ProcessList to ProcessTable throughoutNathan Scott2023-08-311-2/+2
| | | | | | | | | | | | Following up with some discusson from a few months back, where it was proposed that ProcessTable is a better name. This data structure is definitely not a list ... if it was one-dimensional it'd be a set, but in practice it has much more in common with a two-dimensional table. The Process table is a familiar operating system concept for many people too so it resonates a little in that way as well.
* Introduce Machine class for host-specific info (split from ProcessList)Nathan Scott2023-05-081-2/+2
| | | | | | | | | | | First stage in sanitizing the process list structure so that htop can support other types of lists too (cgroups, filesystems, ...), in the not-too-distant future. This introduces struct Machine for system-wide information while keeping process-list information in ProcessList (now much less). Next step is to propogate this separation into each platform, to match these core changes.
* darwin: lazily set process TTY nameCharlie Vieth2022-02-181-0/+2
| | | | | | | | | | | 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.
* Extract Darwin "PlatformHelpers"Alexander Momchilov2021-09-261-0/+1
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Style touch-upsAlexander Momchilov2021-08-231-1/+1
|
* Fix macOS CPU time calculationsAlexander Momchilov2021-08-231-1/+1
|
* Move kernel/userland thread handling to platform-independent implementationBenny Baumann2021-05-231-2/+0
|
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-2/+1
|
* Unhardcode tick-to-ms conversionAlexander Momchilov2020-12-191-1/+1
| | | | | | | | | Division by 100000.0 worked because `sysconf(_SC_CLK_TCK)` happened to be 100. By unhardcoding: 1) It becomes more clear what this 100000.0 figure comes from. 2) It protects against bugs in the case `sysconf(_SC_CLK_TCK)` ever changes.
* Merge Process_pidColumns into Process_fields and rework auto-fit for ↵Christian Göttsche2020-12-191-1/+1
| | | | PID-like columns
* Rework enum ProcessFieldChristian Göttsche2020-12-191-6/+1
| | | | | | Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array
* Add column in darwin to indicate whether the the process is running under ↵Dániel Bakai2020-12-131-0/+6
| | | | translation
* Move Process_fields from darwin/Platform to darwin/DarwinProcessDániel Bakai2020-12-131-0/+2
|
* DarwinProcess: mark local function static and sort includesChristian Göttsche2020-11-171-5/+4
|
* Spacing around operatorsBenny Baumann2020-11-021-4/+4
|
* Hold only a const version of Settings in ProcessChristian Göttsche2020-10-261-1/+1
|
* Refactor generating starttime string into Process classChristian Göttsche2020-10-161-3/+1
|
* Mark remaining classes constChristian Göttsche2020-10-131-1/+1
|
* Mark process argument of Process_isThread constChristian Göttsche2020-10-091-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-1/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Axe automated header generation.Zev Weiss2020-09-031-2/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Update header.Hisham2016-03-311-0/+1
|
* Run through all command line arguments on Darwin.Hisham Muhammad2016-02-181-1/+6
| | | | | Also fixes the basename offset for highlighting the basename. Closes #379.
* Scan threads for process state information.Hisham Muhammad2016-02-181-0/+2
| | | | | | Based on: http://stackoverflow.com/questions/6788274/ios-mac-cpu-usage-for-thread and https://github.com/max-horvath/htop-osx/blob/e86692e869e30b0bc7264b3675d2a4014866ef46/ProcessList.c This should be a fix for #361.
* CPU per process implementedDavid Hunt2015-08-191-5/+12
|
* Fix the thread countsDavid Hunt2015-08-191-1/+3
|
* Start supporting actual dataDavid Hunt2015-08-191-3/+13
|
* Added darwin with working battery meterDavid Hunt2015-08-191-0/+22

© 2014-2024 Faster IT GmbH | imprint | privacy policy