Commit Graph

293 Commits

Author SHA1 Message Date
aristocratos
804fe60ca9 Fixed: Swapped from atomic bool spinlocks to mutexes to fix rare deadlock 2021-10-13 20:54:36 +02:00
aristocratos
e7afe00ce7 Cpu usage working again 2021-10-13 12:54:43 +02:00
aristocratos
4193ef8921 Fixed cpu lazy sorting 2021-10-13 10:36:51 +02:00
aristocratos
8a399c499a pointer to smart pointer, first pass 2021-10-12 21:50:46 +02:00
aristocratos
a1bda5f30c Fixed: atomic_wait() and atomic_lock{} use cpu pause instructions instead of thread sleep 2021-10-12 20:09:35 +02:00
aristocratos
772605003a Fixed detailed memory not updating 2021-10-12 18:54:38 +02:00
aristocratos
903ab4cc8a v1.0.15 Vim keys 2021-10-12 17:39:21 +02:00
aristocratos
2df9b58ff1 Added: Toggle in options for enabling directional vim keys "h,j,k,l" 2021-10-12 17:34:52 +02:00
aristocratos
07145f9351 Fixed: Removed unneeded lock in Runner::run() 2021-10-12 16:56:47 +02:00
aristocratos
4b4bac7edd Changed: Limit atomic_wait() to 1000ms to fix rare stall 2021-10-12 16:49:10 +02:00
Jos Dehaes
28cb677533 more memory free-up - still leaks like crazy 2021-10-11 22:19:25 +02:00
Jos Dehaes
304457863f more RAII cleanup 2021-10-11 21:48:07 +02:00
aristocratos
82e2e3c55c Removed non present cpu fields and fixed calculation for selectable cpu field graphs 2021-10-11 12:40:25 +02:00
aristocratos
68603f2b37 RAII Wrappers for Cpu::get_battery() 2021-10-11 10:57:04 +02:00
Jos Dehaes
d5cb24fbeb RAII 2021-10-10 20:23:11 +02:00
Jos Dehaes
8fad5a61be get more disk IO stats 2021-10-09 21:44:16 +02:00
Jos Dehaes
7fa903cf16 fix build 2021-10-09 21:43:48 +02:00
Jos Dehaes
98036db660 remove unnecessary uptime param 2021-10-09 21:18:25 +02:00
Jos Dehaes
aae7ae35ca remove debug logging 2021-10-09 21:07:23 +02:00
Jos Dehaes
5187420b04 fix process elapsed time 2021-10-09 21:06:43 +02:00
Jos Dehaes
89582c0ea6 don't double free 2021-10-09 21:06:29 +02:00
aristocratos
099592bccd Ignore empty pid 0 to fix tree mode 2021-10-09 17:52:10 +02:00
aristocratos
aee9179c0a Disable failed tty mode detection for OSX 2021-10-09 17:36:46 +02:00
aristocratos
4b7b98058d Fixed disk io and added io activity based on read/write 2021-10-09 11:28:32 +02:00
Jos Dehaes
bfa0629e7d fill in 0 for ioticks 2021-10-08 22:28:10 +02:00
Jos Dehaes
a016ff8a03 disk io from IOreg. Does not show any io though 2021-10-08 22:16:01 +02:00
Jos Dehaes
f98606c6db per process IO stats 2021-10-08 09:32:06 +02:00
Jos Dehaes
c8b50ed488 don't show autofs, it's useless 2021-10-08 00:21:55 +02:00
aristocratos
b3e6f495f7 Fixed clk_tck -> clkTck 2021-10-07 18:26:15 +02:00
aristocratos
b864edf984 Fixed cumulative cpu usage 2021-10-07 18:24:37 +02:00
aristocratos
6a3c5d9b97 Proc::collect() better cpu percent accurazy 2021-10-07 13:20:30 +02:00
aristocratos
84d0596294 Merge branch 'OSX' of github.com:aristocratos/btop into OSX 2021-10-07 12:56:55 +02:00
aristocratos
3564f8e4c2 Proc::collect() fixed cputimes and cpu percentage calc 2021-10-07 12:56:27 +02:00
Jos Dehaes
98e1e87405 Merge branch 'main' into OSX 2021-10-07 11:32:41 +02:00
Jos Dehaes
60c5636cd7 fix warning 2021-10-06 22:45:54 +02:00
Jos Dehaes
489e446152 details + process states 2021-10-06 22:38:40 +02:00
Jos Dehaes
7e5a808c73 avoid details crash 2021-10-06 22:38:19 +02:00
Jos Dehaes
9c9da4606b fix quit on macos 2021-10-06 21:03:21 +02:00
aristocratos
d96fdd7eb2 Fixed: Extra "root" partition when running in snap 2021-10-06 18:06:05 +02:00
aristocratos
2d013e857f v1.0.14 Bug fixes and start of OSX development 2021-10-06 17:11:10 +02:00
aristocratos
dbcd12b9d0 Fixed: snap root disk and changed to compiler flags instead of env variables for detection 2021-10-06 11:25:10 +02:00
aristocratos
69c5eba1db Fixed: Uid -> User fallback to getpwuid() if failure for non static builds 2021-10-06 10:47:24 +02:00
Jos Dehaes
5ac8fa4c8a don't show /dev 2021-10-06 18:56:32 +02:00
Jos Dehaes
c7f1e71e29 comment 2021-10-06 16:00:41 +02:00
Jos Dehaes
b9d58e3faf impossible to get CPU freq on M1 apparently 2021-10-06 15:55:58 +02:00
Jos Dehaes
66072711c2 detect full 2021-10-06 15:34:12 +02:00
Jos Dehaes
6bb0e930a2 CPU freq in GHz 2021-10-06 00:38:46 +02:00
Jos Dehaes
a5f10f1a0f check array length 2021-10-06 15:13:18 +02:00
Jos Dehaes
155c848b97 switch to other way to get CPU freq (still does not work) 2021-10-06 15:05:20 +02:00
Jos Dehaes
cf51ba2ebe remove some warnings 2021-10-06 14:45:44 +02:00
Jos Dehaes
775dff5f72 fix link 2021-10-06 14:16:45 +02:00
Jos Dehaes
8c67967775 reduce diff more 2021-10-06 14:16:38 +02:00
Jos Dehaes
70b47d2ca8 reduce diff with main branch 2021-10-06 14:10:23 +02:00
Jos Dehaes
ca9cb48054 Merge remote-tracking branch 'origin/main' into OSX
# Conflicts:
#	Makefile
#	src/osx/btop_collect.cpp
2021-10-06 13:49:20 +02:00
Jos Dehaes
c66b46f850 battery state via CoreFoundation 2021-10-06 13:41:57 +02:00
Jos Dehaes
d0c6c0a362 all disks + load averages 2021-10-06 12:45:30 +02:00
Jos Dehaes
ca67526dc1 show all disks 2021-10-06 12:45:30 +02:00
Jos Dehaes
56119f99a9 procs sorting/filtering 2021-10-06 12:45:30 +02:00
Jos Dehaes
8d86011d72 battery states 2021-10-06 12:45:30 +02:00
Jos Dehaes
a9b64d62e4 battery hack works on M1 2021-10-06 12:45:30 +02:00
Jos Dehaes
ce51031142 ugly hack to get battery 2021-10-06 12:45:30 +02:00
Jos Dehaes
d5e6725c6c CPU stuff 2021-10-06 12:45:30 +02:00
Jos Dehaes
5c02bd8c83 network 2021-10-06 12:45:30 +02:00
Jos Dehaes
d5da9d4983 correct cached size 2021-10-06 12:45:30 +02:00
Jos Dehaes
5f11aba504 vm stats from syscall + swap 2021-10-06 12:45:30 +02:00
Jos Dehaes
af8cec9deb some more params 2021-10-06 12:45:30 +02:00
Jos Dehaes
7ebe4f7594 show more disks 2021-10-06 12:45:30 +02:00
Jos Dehaes
e50a56394a disks show something 2021-10-06 12:45:30 +02:00
Jos Dehaes
6497a8c202 reformat 2021-10-06 12:45:30 +02:00
Jos Dehaes
28e152b80c decrease diff with upstream 2021-10-06 12:45:30 +02:00
Jos Dehaes
40da88e9ca try to get disks to show 2021-10-06 12:45:30 +02:00
Jos Dehaes
eaf2bb56a5 don't crash on deque::back() 2021-10-06 12:45:30 +02:00
Jos Dehaes
f66b6f712c cpu freq, name & process uid/name 2021-10-06 12:45:29 +02:00
Jos Dehaes
34a8a61f4d basic process info 2021-10-06 12:45:29 +02:00
Jos Dehaes
29bb2dcc5f initialize mutex (needed on macos apparently and not on linux) 2021-10-06 12:45:29 +02:00
Jos Dehaes
49d16cdddd extract delimiters 2021-10-06 12:45:29 +02:00
Jos Dehaes
3db9d66476 first infos on macos: memory used & free 2021-10-06 12:45:29 +02:00
Jos Dehaes
f8acb2f854 make it compile on macos (M1 - arm64). Does not run though 2021-10-06 12:45:29 +02:00
Jos Dehaes
bbba17cd35 all disks + load averages 2021-10-06 10:51:36 +02:00
Jos Dehaes
548203e93d show all disks 2021-10-06 10:33:55 +02:00
Jos Dehaes
0ab2be3985 procs sorting/filtering 2021-10-06 00:17:41 +02:00
Jos Dehaes
096104c90b battery states 2021-10-05 23:42:17 +02:00
Jos Dehaes
0ad93684c2 battery hack works on M1 2021-10-05 23:24:59 +02:00
Jos Dehaes
c75b0f1cea ugly hack to get battery 2021-10-05 23:18:22 +02:00
Jos Dehaes
600b4f72b3 CPU stuff 2021-10-05 22:42:42 +02:00
Jos Dehaes
4eb812d52c network 2021-10-05 21:25:42 +02:00
Jos Dehaes
899be68a78 correct cached size 2021-10-05 15:43:05 +02:00
Jos Dehaes
a1c7f935e3 vm stats from syscall + swap 2021-10-05 12:03:48 +02:00
aristocratos
02fcb8c34a Changed: Total system memory is checked at every update instead of once at start 2021-10-05 09:18:04 +02:00
Jos Dehaes
42f966f448 some more params 2021-10-04 15:32:55 +02:00
Jos Dehaes
c1e6d6a62e show more disks 2021-10-04 15:15:55 +02:00
Jos Dehaes
50fcdaa854 disks show something 2021-10-04 14:52:56 +02:00
Jos Dehaes
264bf2d7da reformat 2021-10-04 09:15:35 +02:00
Jos Dehaes
1fd625086b decrease diff with upstream 2021-10-03 23:21:13 +02:00
Jos Dehaes
17f9f3703c try to get disks to show 2021-10-03 22:56:14 +02:00
Jos Dehaes
8462ae6431 don't crash on deque::back() 2021-10-03 22:42:01 +02:00
Jos Dehaes
78bce5b5a6
Merge branch 'aristocratos:main' into main 2021-10-03 22:08:34 +02:00
Jos Dehaes
53e379d74d cpu freq, name & process uid/name 2021-10-03 22:08:21 +02:00
Jos Dehaes
2a44b307ef basic process info 2021-10-03 21:46:11 +02:00
Jos Dehaes
66534eb5b5 initialize mutex (needed on macos apparently and not on linux) 2021-10-03 21:45:39 +02:00