summaryrefslogtreecommitdiffstats
path: root/darwin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Standardize indentation.Hisham Muhammad2015-08-194-180/+179
|
* CPU per process implementedDavid Hunt2015-08-194-43/+83
|
* Fix the thread countsDavid Hunt2015-08-196-11/+77
|
* Fixed CPU updatingDavid Hunt2015-08-193-16/+30
|
* Static CPU meterDavid Hunt2015-08-194-17/+49
|
* Start supporting actual dataDavid Hunt2015-08-197-55/+433
|
* Added darwin with working battery meterDavid Hunt2015-08-1910-0/+461

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