summaryrefslogtreecommitdiffstats
path: root/darwin
Commit message (Collapse)AuthorAgeFilesLines
...
* Updates to project URLs in docs and embedded in source codeNathan Scott2020-08-221-1/+1
|
* Remove trailing whitespacesChristian Göttsche2020-08-212-2/+0
|
* Merge branch 'hishamhm-pull-920'3.0.0rc1Nathan Scott2020-08-204-1/+45
|\
| * Support for ZFS Compressed ARC statisticsRoss Williams2019-09-032-0/+10
| |
| * Refactor openzfs_sysctl_init() and ZfsArcMeter...Ross Williams2019-09-032-13/+2
| | | | | | | | | | | | | | | | | | | | | | openzfs_sysctl_init() now returns void instead of int. The ZfsArcStats->enabled flag is set inside the init function now, instead of having to be set from its return value. Preparation for more flag setting in Compressed ARC commit. ZfsArcMeter_readStats() added and all Meter->values[] setting moved to it, eliminating duplicated code in {darwin,freebsd,linux,solaris}/Platform.c.
| * Refactor common OpenZFS sysctl accessRoss Williams2019-07-074-93/+16
| | | | | | | | | | Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file.
| * ZFS arcstats for Darwin (macOS / OS X)Ross Williams2019-07-074-0/+122
| |
* | Merge branch 'hishamhm-pull-932'Nathan Scott2020-08-201-0/+2
|\ \
| * | Show N/A on unsupported platforms instead of 0KHzArnavion2019-08-101-0/+2
| |/
* | Merge branch 'hishamhm-pull-960'Nathan Scott2020-08-201-6/+6
|\ \
| * | Clean up existing whitespaceDaniel Flanagan2019-10-311-6/+6
| |/
* | Merge branch 'hishamhm-pull-842'Nathan Scott2020-08-181-1/+1
|\ \ | |/ |/|
| * Widen ST_UID (UID) column to 5 chars to allow UIDs > 9999 without breaking ↵Daniel Lange2018-10-071-1/+1
| | | | | | | | | | | | alignment Issue Github #841, Debian bug #910492
* | Prevent possible NULL pointer deferenceAlan Barr2019-02-101-2/+1
|/ | | | Raised by cppcheck
* macOS: fix the switched version test (#772)pmalhaire2018-04-051-3/+8
|
* macOS: keep scanning thread for versions before High Sierra (#728)pmalhaire2018-03-261-3/+35
| | | | | Keep scanning threads for versions before High Sierra 13.0.0 and after 13.3.0.
* Darwin: disable thread reading due to bug in macOS High SierraHisham Muhammad2018-02-041-1/+2
|
* Issue #502 fix SID colunm header widthKamyar Rasta2017-02-051-1/+1
|
* Issue #502 update Session ID columnKamyar Rasta2017-02-011-2/+2
|
* Interpret TTY_NR column on Linux,Hisham2016-10-011-1/+1
| | | | | translate dev_t to major:minor on other platforms. Closes #316.
* Mark signal tables 'const'Explorer092016-08-302-4/+4
| | | | | | | | | Specifically, Platform_signals[] and Platform_numberOfSignals. Both are not supposed to be mutable. Marking them 'const' puts them into rodata sections in binary. And for Platform_numberOfSignals, this aids optimization (aids only Link Time Optimization for now). :) Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Remove needless allocation error conditionsMichael McConville2016-04-291-5/+3
| | | | | These allocations were converted to use xMalloc et al. and no longer need error checks.
* Update header.Hisham2016-03-311-0/+1
|
* If task_for_pid fails, stop trying.Hisham2016-03-311-0/+9
|
* Run through all command line arguments on Darwin.Hisham Muhammad2016-02-182-57/+16
| | | | | Also fixes the basename offset for highlighting the basename. Closes #379.
* Scan threads for process state information.Hisham Muhammad2016-02-183-10/+69
| | | | | | 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.
* Fix tree organization on OSX.Hisham Muhammad2016-02-181-1/+2
| | | | Closes #393.
* Fix memory accounting in Darwin.Hisham2016-02-131-2/+2
| | | | | | | | | | htop currently expects m_size and m_resident in pages (Process.c). According to the proc_info.h header, the values returned by libproc are in bytes: http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/bsd/sys/proc_info.h Eventually we should change the htop crossplatform API to expect memory in bytes, but this is the smaller change that should fix it. Closes #385.
* Check for failure in allocations.Hisham2016-02-023-8/+8
|
* Introduce CLAMP macro. Unify all MIN(MAX(a,b),c) uses.Explorer092016-01-152-1/+9
| | | | | | | | | | | | | | | | | | | | | | | With the CLAMP macro replacing the combination of MIN and MAX, we will have at least two advantages: 1. It's more obvious semantically. 2. There are no more mixes of confusing uses like MIN(MAX(a,b),c) and MAX(MIN(a,b),c) and MIN(a,MAX(b,c)) appearing everywhere. We unify the 'clamping' with a single macro. Note that the behavior of this CLAMP macro is different from the combination `MAX(low,MIN(x,high))`. * This CLAMP macro expands to two comparisons instead of three from MAX and MIN combination. In theory, this makes the code slightly smaller, in case that (low) or (high) or both are computed at runtime, so that compilers cannot optimize them. (The third comparison will matter if (low)>(high); see below.) * CLAMP has a side effect, that if (low)>(high) it will produce weird results. Unlike MIN & MAX which will force either (low) or (high) to win. No assertion of ((low)<=(high)) is done in this macro, for now. This CLAMP macro is implemented like described in glib <http://developer.gnome.org/glib/stable/glib-Standard-Macros.html> and does not handle weird uses like CLAMP(a++, low++, high--) .
* Darwin: replace vm_statistics64_* with vm_statistics_*Michael Klein2016-01-133-7/+7
| | | | | | Works with: - Darwin 9.8.0 (OS X 10.5.8) PPC - Darwin 15.2.0 (OS X 10.11.2) Intel
* Merge remote-tracking branch 'upstream/master' into envscreenMichael Klein2016-01-061-1/+1
|\
| * Fix spelling of "maintainer"Michael McConville2016-01-021-1/+1
| |
* | Add Platform_getProcessEnvMichael Klein2015-12-032-0/+55
|/ | | | - currently implemented for darwin and linux
* Add Darwin swap meter.SaltwaterC2015-11-162-5/+10
|
* Fix CRT_fatalError warning.Hisham Muhammad2015-11-021-0/+1
|
* Add missing header, silence warning. Should fix #292.Hisham Muhammad2015-11-022-0/+4
|
* Merge pull request #299 from mmcco/masterHisham Muhammad2015-11-021-7/+7
|\ | | | | OpenBSD port updates and error exit improvements
| * Replace all err.h function uses with CRT_fatalError(). Failing withMichael McConville2015-11-011-7/+7
| | | | | | | | err.h functions corrupts the terminal when using curses.
* | Initialize variables, silence warnings.Hisham Muhammad2015-10-242-1/+5
| |
* | Calculate CPU averages on Darwin (See #295).Hisham Muhammad2015-10-232-9/+26
| |
* | Regenerate platform-dependent headers.Hisham Muhammad2015-10-191-0/+6
| | | | | | | | Closes #293.
* | Add Darwin signals (same as FreeBSD)Hisham Muhammad2015-10-061-0/+38
|/ | | | https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/signal.3.html
* Merge pull request #274 from mmcco/masterHisham Muhammad2015-10-051-23/+12
|\ | | | | Cleanup and initial OpenBSD support
| * Change more fprintf(stderr, ...); exit(...); to err[x](...). Tweak a few ↵Michael McConville2015-09-191-7/+4
| | | | | | | | existing ones and fix some style.
| * Clean up some needless malloc casts, convert some mallocs to callocs, and ↵Michael McConville2015-09-161-17/+9
| | | | | | | | fix some style
* | removing unnecessary include, which on top breaks compilingkaefer2015-09-141-1/+0
|/
* Remove conflicting declarations.Jardel Weyrich2015-09-102-2/+0
|
* fix calloc() callsChristian Hesse2015-09-071-1/+1
| | | | | | | * size_t nmemb (number of elements) first, then size_t size * do not assume char is size 1 but use sizeof() * allocate for char, not pointer to char (found by Michael McConville, fixes #261)
* Make column width calculation dynamic.Hisham Muhammad2015-08-202-27/+9
| | | | Closes #228.

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