summaryrefslogtreecommitdiffstats
path: root/darwin
Commit message (Collapse)AuthorAgeFilesLines
...
* Mark Object classes and Object class fields constChristian Göttsche2020-10-071-1/+1
|
* Merge branch 'update-license-and-copyright-info'Nathan Scott2020-10-068-8/+8
|\
| * Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-058-8/+8
| |
* | Add a date and datetime meter (#159)Michael F. Schönitzer2020-10-051-0/+4
|/ | | | | | Add a date meter and sort header and source files in Makefile Change the lists of header and source files sorted alphabetical and one file per line. This way diffs become better readable and merges easier.
* Add DiskIOMeter for IO read/write usageChristian Göttsche2020-10-032-0/+7
|
* CPUMeter: add octuple-column CPU meters.multi2020-09-281-0/+3
| | | | | | | This is a straightforward extension of the existing multi-column CPU meter code, which now allows for up CPU meters to be displayed in up to 16 columns. This also adds the meter declarations to all the platform-specific code.
* Add missing 4-column CPU meters to non-Linux platforms.multi2020-09-281-0/+3
|
* Add -Wmissing-prototypes compiler warningChristian Göttsche2020-09-252-2/+3
|
* Update CPU freq display to use NAN on errorBenny Baumann2020-09-241-1/+2
|
* Update battery API to use NAN on errorBenny Baumann2020-09-241-1/+3
|
* Fail travis CI on compiler warningsChristian Göttsche2020-09-182-3/+2
|
* Mark noreturn functionsChristian Göttsche2020-09-182-1/+4
|
* Use strict function prototypesChristian Göttsche2020-09-181-2/+2
| | | | int foo(); declares a function taking any number of arguments.
* Switch variable/field naming from WhiteList to MatchListNathan Scott2020-09-092-3/+3
|
* Consolidate repeated macro definitions into one headerNathan Scott2020-09-092-8/+0
| | | | | | | | The MIN, MAX, CLAMP, MINIMUM, and MAXIMUM macros appear throughout the codebase with many re-definitions. Make a single copy of each in a common header file, and use the BSD variants of MINIMUM/MAXIMUM due to conflicts in the system <sys/param.h> headers.
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-084-4/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Axe automated header generation.Zev Weiss2020-09-038-54/+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.
* 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
| |

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