Commit Graph

339 Commits

Author SHA1 Message Date
Alastair Poole d30434c78a proc: linux simplify 2020-05-13 02:11:10 +01:00
Alastair Poole cbd7f9c853 evisum: Split the UI out.
More to come...
2020-05-13 00:51:30 +01:00
Alastair Poole f37c4c2daf ui: improve tabs? 2020-05-12 21:03:36 +01:00
Alastair Poole 6d5f404eb3 proc: Add basic thread support (Linux).
Just a start.
2020-05-12 20:34:07 +01:00
Alastair Poole faf3b8d989 proc: refactor for thread information.
If we are going to be fetching per-process thread states we really
need to clean up this Linux /proc/*/stat parsing.

I think this /proc fs implementation just sort of "happened".
To be decided which I prefer yet of the four architectures, def, not
Linux though :)
2020-05-12 19:51:05 +01:00
Alastair Poole 786817919c proc: trim argument (FreeBSD) 2020-05-12 11:04:21 +01:00
Alastair Poole 5b839a79a3 proc: trim argument. 2020-05-12 10:56:36 +01:00
Alastair Poole a086c779ac ui: trimming.
Nothing of any significance.
2020-05-11 22:51:36 +01:00
Alastair Poole d57883ad57 ui: small changes. 2020-05-11 22:46:04 +01:00
Alastair Poole 1c04d0b527 OpenBSD: Improve Command Parsing. 2020-05-11 17:52:48 +01:00
Alastair Poole a4a889a699 OpenBSD: Not distinguished shared and resident. 2020-05-11 17:42:24 +01:00
Alastair Poole 39d22d66ea macos: dont return if we cannot get workqueueinfo.
Set the memory to zero here when it's unavailable.
2020-05-11 17:00:33 +01:00
Alastair Poole 7d9ef26986 Swap: Handle 0 swap. 2020-05-11 16:55:20 +01:00
Alastair Poole 568045625e proc: FreeBSD changes. 2020-05-11 16:29:49 +01:00
Alastair Poole 0d98368d0c proc: Process Memory Improvement 2020-05-11 16:12:04 +01:00
Alastair Poole 2baef9e5bf proc: Tidy line lengths. 2020-05-11 10:22:26 +01:00
Alastair Poole a18d65e23a ui: Callback on animation del 2020-05-09 03:06:05 +01:00
Alastair Poole 265b8be7e6 ui: Prettier 2020-05-09 02:17:17 +01:00
Alastair Poole 2b68727b6e ui: ...
:|
2020-05-09 00:41:53 +01:00
Alastair Poole a80d244476 process: Make sure Linux always parses cmdline. 2020-05-09 00:14:30 +01:00
Alastair Poole fc60c351ca process: Fix Linux Process Arguments.
Arguments are NULL terminated until we hit padded NULLs.
2020-05-09 00:00:56 +01:00
Alastair Poole 27053fa460 ui: Small Change 2020-05-08 23:01:58 +01:00
Alastair Poole 3b82d992ac proc: fix freebsd proc argument. 2020-05-08 22:14:01 +01:00
Alastair Poole 8d1383e245 ui: Make search fast again 2020-05-08 21:23:49 +01:00
Alastair Poole 221e3f8c6d resize: improve resize behaviour. 2020-05-08 19:08:25 +01:00
Alastair Poole bda2a51124 FreeBSD: Obtain correct PID_MAX (Fallback). 2020-04-29 09:50:55 +01:00
Alastair Poole 41a8e8b7ca FreeBSD: Fix 2020-04-28 19:21:41 +01:00
Alastair Poole ba22c1c4fd BSD: Fix for unusual setup.
Thanks Peter2121 (Quelrond)
2020-04-28 13:40:38 +01:00
Alastair Poole c888e30153 proc: fix build. 2020-04-27 13:48:35 +01:00
Alastair Poole 2585f7768f process: Formatting. 2020-04-27 13:45:02 +01:00
Alastair Poole 0a9c11da7b macOS: Access stack of process for argc and argv.
This allows us to properly obtain the command and its arguments
as per other operating systems we support.
2020-04-27 13:41:05 +01:00
Alastair Poole 3559064cfd macOS: Use proc_bsdinfo pbi_name if possible. 2020-04-26 15:31:18 +01:00
Alastair Poole 988105e4eb proc: clean up 2020-04-26 01:55:47 +01:00
Alastair Poole 51d3977a9d linux:process memory use.
On linux distinguish between memory size and virtual memory size.
2020-04-25 21:38:11 +01:00
Alastair Poole 40eace5c54 proc: unused variable (macOS). 2020-04-25 14:15:34 +01:00
Alastair Poole 4af5534164 ui: keypress fix logic. 2020-04-24 12:33:36 +01:00
Alastair Poole cf92bf88de linux: onto macOS next (hopefully). 2020-04-24 03:21:29 +01:00
Alastair Poole d5da445b3f proc: sane memory. 2020-04-24 02:29:27 +01:00
Alastair Poole 9994914e3a ui: remove memory title (no need) 2020-04-23 16:28:52 +01:00
Alastair Poole efa207bbc5 ui: memory display. 2020-04-23 16:20:37 +01:00
Alastair Poole ad1f149e55 evisum: add gettext support 2020-04-23 12:28:07 +01:00
Alastair Poole 247c45c32b process: Make memory total ApBBB compatible.
Due to the importance of ApBBB conformance I am forced to display
memory total in the 2020 APBB standard. This is not ideal but
it does provide protection, based on this new standard.
2020-04-23 10:47:14 +01:00
Alastair Poole b343a3721c panel: remove unnecessary function 2020-04-23 01:24:38 +01:00
Alastair Poole 1c0a94f84d ui: fix sort after "refactor" 2020-04-22 23:05:39 +01:00
Alastair Poole 10cbba80f5 ui: Formatting and "logic" 2020-04-22 22:55:22 +01:00
Alastair Poole 7d98f61332 ui: use double precision for memory. 2020-04-22 22:24:59 +01:00
Alastair Poole c060e493b1 ui: reduce code duplication... 2020-04-22 20:22:10 +01:00
Alastair Poole c2bed9ef5d ui: show memory nice 2020-04-22 19:36:32 +01:00
Alastair Poole d844d0084d evisum: Use (SZ - RSS), VSZ and RSS. 2020-04-22 18:28:20 +01:00
Alastair Poole 8499ecc8f4 proc/ui: refactor linux proc and ui shutdown. 2020-04-22 17:14:23 +01:00
Alastair Poole 844ae36cf6 shutdown: if mainloop terminates shutdown.
Thanks ASAN.
2020-04-22 16:04:57 +01:00
Alastair Poole d63b95ef27 bsd: add freebsd shared memory usage (proc). 2020-04-22 15:22:25 +01:00
Alastair Poole 1a79d7ace1 mem: openbsd shared. 2020-04-22 15:08:16 +01:00
Alastair Poole fff7361359 mem: Label size size.
Add shared later. I'm confusing myself here.
2020-04-22 14:57:30 +01:00
Alastair Poole 20c420967a mem: bring this all together (linux). 2020-04-22 14:30:30 +01:00
Alastair Poole 2b03c8ce0b openbsd: cached. 2020-04-22 11:34:22 +01:00
Alastair Poole c7c17e0c9c proc: mem_shared freebsd... 2020-04-22 11:23:00 +01:00
Alastair Poole b9579f8b7b proc: tidy 2020-04-22 11:05:17 +01:00
Alastair Poole 0381b3a6b7 OpenBSD: Command Line Arguments. 2020-04-22 10:52:22 +01:00
Alastair Poole 568822263c proc: FreeBSD et al command arguments. 2020-04-22 10:32:22 +01:00
Alastair Poole f9acb87411 proc: add free api and command line. 2020-04-22 10:10:02 +01:00
Alastair Poole 6dd238dcc1 OpenBSD: Use process argument list. 2020-04-21 21:44:24 +01:00
Alastair Poole 42dd49f3c1 FreeBSD: Get process argument list.
If we don't use this we're restricted to a small command buffer
of 16 or so bytes the kernel will keep in the kp struct.

Fallback to fallback...
2020-04-21 19:50:02 +01:00
Alastair Poole 18fdfd8eb9 ui: spacing 2020-04-21 12:54:51 +01:00
Alastair Poole 50e03aba56 cpu: Use existing objects.
Don't clear and recreate objects.
2020-04-21 11:54:17 +01:00
Alastair Poole f4af2d75b9 ui: dont duplicate code here. 2020-04-21 10:51:24 +01:00
Alastair Poole 5e642c4cf1 build: compiler warning. 2020-04-20 19:50:51 +01:00
Alastair Poole 59234345c3 bsd: Fix OpenBSD support. 2020-04-20 19:42:35 +01:00
Alastair Poole 1e2b9ef98e ui: move bat list to its own functin 2020-04-20 11:32:32 +01:00
Alastair Poole 83f726b67c cache: group caching functions/data. 2020-04-20 10:58:18 +01:00
Alastair Poole ed7935525c config: remove ui check 2020-04-18 21:12:02 +01:00
Alastair Poole b33d69db8a config: save window and height.
If the user finds a comfortable size let's remember it.

Someone is bound to ask for that, just make it happen.
2020-04-18 20:56:04 +01:00
Alastair Poole f73d85c136 ui: Expand When Needed 2020-04-18 20:06:48 +01:00
Alastair Poole acf601c456 0.4.0: Prepare for a release.
Let's try to make this work good for a release with EFL 1.24.
2020-04-18 15:58:20 +01:00
Alastair Poole f54ded6c4d menu: ensure clicking outside does nothing. 2020-04-18 15:36:34 +01:00
Alastair Poole 4a27a4d636 ui: Add Priority 2020-04-18 15:01:00 +01:00
Alastair Poole fe73e52897 ui: warn 2020-04-18 13:41:41 +01:00
Alastair Poole f35fddb841 ui: fix warn 2020-04-18 13:40:42 +01:00
Alastair Poole a62a93efd0 ui: Add process menu.
Also add user names -> id
2020-04-18 13:41:25 +01:00
Alastair Poole 9da429c707 ui: resize fix. 2020-04-18 12:39:57 +01:00
Alastair Poole 6b4d9cb0b7 ui: process list start render increase. 2020-04-18 12:28:38 +01:00
Alastair Poole 50c68b9728 ui: improve start-up rendering 2020-04-18 11:40:51 +01:00
Alastair Poole 033e83aca8 ui: refactor :) 2020-04-18 04:11:03 +01:00
Alastair Poole 6ae020666f oops: tsk 2020-04-18 03:35:42 +01:00
Alastair Poole 704694e688 ui: improved and ready to tidy for releasing. 2020-04-18 03:33:59 +01:00
Alastair Poole bde2f93b6b ui: tidy 2020-04-18 02:38:16 +01:00
Alastair Poole 68c56667bc ui: item cache size init 2020-04-18 02:35:02 +01:00
Alastair Poole 8ddb2e8ef0 ui: align 2020-04-18 02:27:18 +01:00
Alastair Poole 5208ece41f ui: use a genlist cache. 2020-04-18 02:07:12 +01:00
Alastair Poole d9c27256c6 ui: use smart callbacks because they are smarter.
Using EVAS_EVENT is too complicated use smart callback ands
select/unselect the item rather than calculating the location etc
and introducing a bug where you could drag the slider and then
mouse up over the list and bring the process view up.

:) thanks jf_simon for report.
2020-04-17 23:49:12 +01:00
Alastair Poole 8ddd992837 ui: hmmm 2020-04-17 13:00:51 +01:00
Alastair Poole 7bdf313605 ui: Scroller show only when needed.
jf_simon ask
2020-04-17 12:22:55 +01:00
Alastair Poole c02f4f628f small padding. 2020-04-16 22:34:20 +01:00
Alastair Poole 702549ed9a rename type. 2020-04-16 22:03:25 +01:00
Alastair Poole 96ad02bdf1 ui: Fix memory tab.
Again too many useless widgets.
2020-04-16 18:19:45 +01:00
Alastair Poole ac8265269a ui: remove unneeded widgets. 2020-04-16 16:49:44 +01:00
Alastair Poole af57236fbb ui: Remove too many useless widgets 2020-04-16 16:09:05 +01:00
Alastair Poole be08de2b1a BSD: Run post-install script to use efficient engine.
FreeBSD needs sgid kmem in order to access KVM. If this isn't
set, we use a slow-assed fallback method.
2020-04-16 15:34:39 +01:00
Alastair Poole 05b59290b8 ui: Remove unecessary objects.
This is left over from when I had less of an idea about the elm
widgets. Purge this stuff...
2020-04-16 14:50:53 +01:00
Alastair Poole 1e6c952f82 UI: Move 2020-04-16 02:27:09 +01:00
Alastair Poole 7c3cf89852 ui: fix leak.
This needs much improvement.
2020-04-16 00:15:25 +01:00
Alastair Poole 8952c094ab ui: tidy.
Sometimes things looks okay, others they just don't.
2020-04-15 18:24:19 +01:00
Alastair Poole cc57230d02 ui: meh 2020-04-15 18:15:22 +01:00
Alastair Poole f18e348095 ui: unused var 2020-04-15 18:08:08 +01:00
Alastair Poole 077eece610 changes: more changes. 2020-04-15 17:49:37 +01:00
Alastair Poole 2447da49dc disk: Improve Display 2020-04-15 15:03:54 +01:00
Alastair Poole 40b9af3099 disks: Make this read easier 2020-04-15 14:30:56 +01:00
Alastair Poole 7ac98b1325 config: use a function. 2020-04-15 13:57:50 +01:00
Alastair Poole 582cc09ed9 ui: remove hilight 2020-04-15 01:59:40 +01:00
Alastair Poole 04beb6a18e sort: Use info not hilight. 2020-04-14 18:33:07 +01:00
Alastair Poole a597212e9f everything: Changes. 2020-04-14 18:24:27 +01:00
Alastair Poole 0ff9d44b39 FreeBSD: Fix Swap 2020-04-09 16:55:58 +01:00
Alastair Poole b5259d6b7c close: Just exit here. 2020-03-22 13:48:59 +00:00
Alastair Poole d11ea1b84c 0.3.1: Fix OpenBSD Bug. 2020-03-22 13:44:48 +00:00
Alastair Poole c510bf0343 system: Silence warning (Linux). 2020-02-26 21:39:13 +00:00
Alastair Poole 6e895b3490 system: remove unused function. 2020-02-26 21:35:57 +00:00
Alastair Poole 4258353949 ui: waste not want not.
We can use a list to store PID cpu times.
2020-02-24 17:22:22 +00:00
Alastair Poole 71d161f4a1 ui: split up init code more 2020-02-19 15:04:21 +00:00
Alastair Poole 0520fe4623 FreeBSD: Hide kernel processes.
This was an error. Should be P_KPROC not P_SYSTEM
2020-02-18 16:26:10 +00:00
Alastair Poole ac9e5c0fbf ui: improve logic.
Some of this was overkill.
2020-02-17 22:38:24 +00:00
Alastair Poole 61e3b9b153 disks: Minor changes (Linux) 2020-02-16 21:40:26 +00:00
Alastair Poole 4a0c447591 ui: Small logic change. 2020-02-16 19:38:40 +00:00
Alastair Poole a74ee1d83b evisum: various improvements.
Better command naming on Linux. Also set data type needs to use
a modifier. So, Ctrl + k, m and g.
2020-02-16 19:34:41 +00:00
Alastair Poole ac7cbd8a5b ui: Small changes... 2020-02-16 15:57:26 +00:00
Alastair Poole ab629c7612 ui: more changes, formatting mainly. 2020-02-16 02:03:32 +00:00
Alastair Poole f201489b37 ui: Fix bug
Thanks jf_simon
2020-02-15 17:36:33 +00:00
Alastair Poole 79838b4d42 ui: Improvements.
Hide search bar on other tabs. Fix the sizing of other entries.
2020-02-15 17:12:02 +00:00
Alastair Poole 48e0013743 0.3.0: Prepare a release.
Fixed some minor annoyances and alignment with the UI.
Also added a search bar as I read someone wanted that in a forum.
Along with that some minor changes and tidying...
2020-02-15 15:30:31 +00:00
Alastair Poole d68c72279f ui: Make the command fit. 2020-02-15 12:11:03 +00:00
Alastair Poole ff9a38f0ff ui: Minor formatting 2020-02-14 20:10:54 +00:00
Alastair Poole 14344e8bd2 Icons: Add default icons (Use Apostolos E icons).
Minor formatting and use our own icons by Apostolos.
He already created the application icon. These look fine
with flat and dark theme.
2020-01-04 13:00:35 +00:00
Alastair Poole bd588341a8 proc: use appropriate buffer size.
As per documentation.
2020-01-03 14:19:42 +00:00
Alastair Poole 539f078812 UI: Show percentage sign where applicable. 2019-12-14 19:35:26 +00:00
Alastair Poole c66ef78497 Meson: Use configuration_data.
Meson makes this much easier and prettier. Generate a configure
file for future use.
2019-12-10 23:17:16 +00:00
Alastair Poole 6be13a1268 Misc: Using high precision here is useless. 2019-12-07 13:08:35 +00:00
Alastair Poole 62a451c9ee meson: Fix build for OpenBSD. 2019-12-05 18:04:24 +00:00
Alastair Poole 0a036c0453 getpagesize: No need to keep calling this funtion. 2019-12-05 13:56:19 +00:00
Alastair Poole ebe27c31f0 FIX: Remove workaround for reversion in earlier EFL.
This is no longer necessary.
2019-12-05 13:47:55 +00:00
Alastair Poole 75e1daf45e Changes: Restructure folder. 2019-12-04 22:55:01 +00:00