Benny Baumann
27b36dab1a
Make kernel thread display for COMM/EXE columns less visible and more consistent
5 years ago
Benny Baumann
45cb99d870
Minor indentation fix
5 years ago
Benny Baumann
f0a232568f
Reduce visual noise to when comm and cmdline actually disagree on the program basename
5 years ago
Narendran Gopalakrishnan
dde2af1fdb
Assume full basename matches COMM when matching full COMM buffer
5 years ago
Narendran Gopalakrishnan
e33d4d9460
Include merge status with column title when enabled
5 years ago
Narendran Gopalakrishnan
be60419630
Cleanup some documentation
5 years ago
Benny Baumann
fcda517a67
Add heuristic for space-separated cmdline
5 years ago
Benny Baumann
98fce1fb43
Compatibility function for faccessat
5 years ago
Narendran Gopalakrishnan
09fe94da18
Improving Command display/sort
5 years ago
Christian Göttsche
42c842c190
LinuxProcess_adjustTime: simplify by not using double
...
Does not work with -ffast-math else.
5 years ago
Daniel Lange
95f553b10c
Move treeView setting to make status bar item correct when using --sort-key, patch from @cgzones
...
Closes #340
5 years ago
Christian Göttsche
952ee9cd77
LinuxProcessList: fix misspelling
5 years ago
Christian Göttsche
72df930241
DarwinProcessList: retry getting list of all processes on ENOMEM
...
The process count might change between the two sysctl() calls getting
the size and getting the data.
Retry (3 times) in case the data-retrieval sysctl() call fails with ENOMEM.
see http://mirror.informatimago.com/next/developer.apple.com/qa/qa2001/qa1123.html
Related: #118
5 years ago
Christian Göttsche
6c2849ec81
Linux: fix display of new thread for one cycle when hidden
5 years ago
Nathan Scott
003f2c06a4
Merge branch 'cleanup-init-done' into master
5 years ago
Nathan Scott
82a69ee87a
Consistent ordering of function declarations for FreeBSD
5 years ago
Christian Göttsche
17eeb7573a
LinuxProcessList: skip parsing threads if the kind of thread is disabled
5 years ago
Benny Baumann
be39de14dd
Reduce scope of cached values
5 years ago
Christian Göttsche
be568b1153
Object: assert callbacks exists
...
Improves stacktraces.
Current stacktrace:
./htop(backtrace+0x5b)[0x45d98b]
./htop(CRT_handleSIGSEGV+0x189)[0x4eb5e9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7fbbfb1ea140]
New:
./htop(backtrace+0x5b)[0x45d98b]
./htop(CRT_handleSIGSEGV+0x189)[0x4eb7f9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7f62b0a65140]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f62b089ac41]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f62b0884537]
/lib/x86_64-linux-gnu/libc.so.6(+0x2540f)[0x7f62b088440f]
/lib/x86_64-linux-gnu/libc.so.6(+0x345c2)[0x7f62b08935c2]
./htop(Vector_delete+0x873)[0x54b303]
./htop(Panel_done+0x7b)[0x51abbb]
./htop[0x4ed8ee]
./htop(Vector_delete+0x414)[0x54aea4]
./htop(ScreenManager_delete+0x37)[0x536ea7]
./htop[0x4d9d1a]
./htop[0x4d5516]
./htop[0x5078d7]
./htop(ScreenManager_run+0x69f)[0x5388bf]
./htop(main+0x7c6)[0x4fcf76]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f62b0885cca]
./htop(_start+0x2a)[0x42688a]
5 years ago
Benny Baumann
03f9a86918
Reduce scope of local variables
5 years ago
Benny Baumann
ddda739cb2
Simplify code flow by inlining declarations where they are used
...
Note that xStrdup always returns non-NULL, thus the one error case cannot be reached.
5 years ago
Benny Baumann
3cb96f1a36
No need to check for change when no action is required
5 years ago
Benny Baumann
98943d595e
Reduce scope of totaltime
5 years ago
Benny Baumann
51be2d5415
Fix NULL pointer dereference on kstat_lookup failure
5 years ago
Benny Baumann
d2c64c16e6
Fix build for custom make targets
5 years ago
Christian Göttsche
0f4e3ebc95
Simplify page size related calculations
5 years ago
Christian Göttsche
fa002c0ba9
Rename virtual memory column from M_SIZE to M_VIRT
...
Closes : #325
5 years ago
Christian Göttsche
3e5cba91ce
LinuxProcess: mark LinuxProcess_printDelay static
5 years ago
Christian Göttsche
4fb82e301d
fix indent
5 years ago
Benny Baumann
f752c6e2d1
Remove unnecessary parens
5 years ago
Christian Goettsche
f5c3349bdb
IWYU update (FreeBSD)
5 years ago
Christian Göttsche
7cf5277594
IWYU update (Linux)
5 years ago
Nathan Scott
5d50f43d5f
Add whitespace to improve Linux Platform_init readability
5 years ago
Nathan Scott
c75c5ef9c6
Minor cleanups to platform-specific init and done
...
Move platform-specific code out of the htop.c main function
and into the platform sub-directories - primarily this is
the Linux procfs path check and sensors setup/teardown; not
needed on any other platforms. No functional changes here.
5 years ago
Nathan Scott
329011bb98
Add missing OpenBSD battery function declaration
5 years ago
Christian Göttsche
0a2105eb22
Spelling corrections
5 years ago
Christian Göttsche
f720868998
Align command line argument descriptions in help output
...
Also drop #link comment
5 years ago
Nathan Scott
0eb3c7589d
Merge individual Battery.[ch] files into Platform.[ch]
...
Small changes from review - keep headers sorted and keep local
variable declarations at the top of source files.
5 years ago
Nathan Scott
ea9622b8c9
Merge individual Battery.[ch] files into Platform.[ch]
...
Consistent with everything else involving platform-specific
calls from core htop code.
5 years ago
Christian Göttsche
e3af8d0d08
DarwinProcessList: mark local functions static and sort includes
5 years ago
Christian Göttsche
ba2d59020d
DarwinProcess: mark local function static and sort includes
5 years ago
Christian Göttsche
b3b890f546
Use 0 as no-match value for sortkey
...
Field numbers start at 1, and using -1 as no-match special value triggers
static analyzers using a potential negative array access.
5 years ago
Christian Göttsche
f38af725c2
Silence theoretical memory leak
...
In practice systemctl should never return multiple SystemState= lines.
5 years ago
Daniel Lange
fec9af4e6f
Merge branch 'temperature_v2' of cgzones/htop
...
Closes #111 , closes #49
Closes #93 - thank you for leading the way @DX37 (Maxim Kurnosenko)!
5 years ago
Benny Baumann
a94fd87b05
Avoid calling Object_isA from inside Vector_isConsistent
5 years ago
Christian Göttsche
307c34b028
Hashtable: use dynamic growth and use primes as size
...
Dynamically increase the hashmap size to not exceed the load factor and
avoid too long chains.
Switch from Separate Chaining to Robin Hood linear probing to improve
cache locality.
Use primes as size to further avoid collisions.
E.g. on a standard kde system the number of entries in the ProcessTable
might be around 650.
5 years ago
Christian Göttsche
7914ec201e
Hashtable update
...
- use consistent type for key by introducing a new typedef
- use unsigned types for sizes
- name parameters in foreach function typedef
5 years ago
Christian Göttsche
15eab2012d
Add process column for normalized CPU usage
...
Shows the process CPU usage divided by the number of CPU cores
5 years ago
Daniel Lange
a8a723ffe9
Add debug state to the configure report (thanks @benbe for the idea)
5 years ago
Christian Göttsche
1b225cd7a0
Show CPU temperature in CPU meter
...
Show the CPU temperature in the CPU meter, like CPU frequency, instead
of using an extra Meter.
5 years ago