Commit Graph

747 Commits

Author SHA1 Message Date
Alastair Poole b2f977ee66 ui: simplify and remove title.
These labels are awful.

If you are ON the CPU "tab" WHY the hack do you need another
massive text label explaining the same thing!!!

Sometimes I wonder, wonder wonder...
2020-06-18 21:11:27 +01:00
Alastair Poole fbd7bc4f1f misc: fix padding 2020-06-18 20:54:18 +01:00
Alastair Poole 0966855f5b machine: memory use.
In line with ActivityMonitor for usage.

Labels need sorting for/by platform. User feedback would be good.
As would users :)
2020-06-18 20:25:50 +01:00
Alastair Poole ec9773bf15 machine: cast to uint64_t 2020-06-18 20:08:20 +01:00
Alastair Poole dfc32faee8 Linux: Use sensible sensor name. 2020-06-18 18:37:51 +01:00
Alastair Poole 8d1d9a7aaf testing: Add testing mechanics.
Expose machine.h APIs and introduce code to make testing
very easy.
2020-06-18 15:36:39 +01:00
Alastair Poole 6bd132a6b5 thermal: parse what is good. 2020-06-18 13:36:23 +01:00
Alastair Poole d9a750e323 AUTHOR: Alastair NOT Alan or Altron or ALDO. 2020-06-18 13:18:53 +01:00
Alastair Poole cd0bc01101 linux: read sensors (alphasort).
Otherwise it's a sh*tshow
2020-06-18 13:11:56 +01:00
Alastair Poole 77516b3a98 openbsd: fix 2020-06-18 12:54:45 +01:00
Alastair Poole 3ed3be21a4 freebsd: fix 2020-06-18 11:47:22 +01:00
Alastair Poole d5c10b939d machine: fix index 2020-06-18 12:45:06 +01:00
Alastair Poole ef961b275a machine: remove horrible hack 2020-06-18 12:17:11 +01:00
Alastair Poole 8a9146909e openbsd: clarify sysctl use 2020-06-18 00:39:47 +01:00
Alastair Poole 30dba9499e machine: Rename 2020-06-17 23:08:44 +01:00
Alastair Poole ce200bf65f filesystems: fix naming 2020-06-17 23:04:52 +01:00
Alastair Poole 461c34fc0d ui: rename 2020-06-17 22:34:25 +01:00
Alastair Poole edd8923326 ui: track proc state properly 2020-06-17 11:06:45 +01:00
Alastair Poole 2c552c2625 ui: Move thermal into Misc. 2020-06-17 11:27:36 +01:00
Alastair Poole 00fa1a5467 machine: lindent. 2020-06-16 22:02:01 +01:00
Alastair Poole b52cc6e717 macos/netbsd: tidy macos and disown netbsd 2020-06-16 21:32:33 +01:00
Alastair Poole 1450752152 machine: Tidy this up, fix leakages. 2020-06-16 20:12:55 +01:00
Alastair Poole 8a5e2704e0 freebsd: thermal here sucks.
There are modules for more but it's too much. They should use a
decent API and not put things all over the place/name space.
2020-06-16 17:29:51 +01:00
Alastair Poole 7dd5077692 OpenBSD: Detect thermal zones properly. 2020-06-16 15:21:06 +01:00
Alastair Poole ab66aa95e8 linux: read as many thermal sensors as we can.
As with OpenBSD.
2020-06-16 14:57:09 +01:00
Alastair Poole 2c0ece6008 macos: fix build 2020-06-16 14:39:04 +01:00
Alastair Poole dcf23687a3 openbsd et al. Support as many sensors we can find.
This isn't finished, build broken for Linux and others.
2020-06-16 14:29:06 +01:00
Alastair Poole 384030bade tz: more precision. 2020-06-15 13:21:34 +01:00
Alastair Poole 0f89e698bb OpenBSD: Support RPI2/3 and 4 (pending).
There is a driver to go along with this. See:

https://haxlab.org/rpi4/bcm2711_temp.diff.txt
2020-06-13 20:54:11 +01:00
Alastair Poole b1d6b691a5 eina: remove unneeded _list_free part 2. 2020-06-11 12:53:45 +01:00
Alastair Poole 46376bd40b eina: remove unneeded _list_free 2020-06-11 12:46:50 +01:00
Alastair Poole aa6f3e5785 ui: one function to save them all. 2020-06-11 12:22:56 +01:00
Alastair Poole 5bfb60cbd6 build: Fix on OpenBSD. 2020-06-11 11:57:19 +01:00
Alastair Poole 73a5305dde machine: read rpi3/4 cpu core temperature. 2020-06-08 14:05:16 +01:00
Alastair Poole cc4e50fb3e filesystem: Linux again diverges from the pack.
As we are aiming to suport the other OS, we will treat
Linux as the exception as with memory use.

Linux uses /proc/mounts for all this however BSD/macOS use a
single struct and system call. The argument might be the
expense of the syscall, but for our purposes and sanity use
the greatest common demoninator again. Sorry Linux...

Seems procfs isn't going to scale very well in the future, am
not looking forward to what they use next...
2020-06-08 12:20:55 +01:00
Alastair Poole 68f5c3fcbf macos/openbsd: fs type name 2020-06-08 11:25:36 +01:00
Alastair Poole ed267ba555 fbsd: fs type name. 2020-06-08 11:23:12 +01:00
Alastair Poole 86d7f2adda ui: crude listing of fs type. 2020-06-08 11:07:07 +01:00
Alastair Poole b8e8164f85 ZFS: Changes. 2020-06-08 10:39:43 +01:00
Alastair Poole f5e8d5e6de disk: fix linux build 2020-06-08 01:24:30 +01:00
Alastair Poole a209120b96 disks: eina_list_free non needed. 2020-06-08 01:16:57 +01:00
Alastair Poole 2a90bc465e disks: small refactor 2020-06-08 01:05:30 +01:00
Alastair Poole 4542ad10db fs: dont expose magic 2020-06-07 21:46:51 +01:00
Alastair Poole dbf3f10194 filesystem: add initial fs info api. 2020-06-07 20:00:43 +01:00
Alastair Poole 83db45e7c6 ui: search hide on resize fix.
Hide the container of the entry when resizing

@fix :)
2020-06-07 18:10:17 +01:00
Alastair Poole 4ffe0a1672 ui: don't let button stretch. 2020-06-07 18:05:13 +01:00
Alastair Poole 8ec8a5efda ui: size format. 2020-06-07 14:43:56 +01:00
Alastair Poole 04ea3ddce8 space: for the future. 2020-06-07 14:39:13 +01:00
Alastair Poole 702f650603 freebsd: include zfs abomination if in use. 2020-06-07 12:57:27 +01:00
Alastair Poole 4dc7109ce9 disks: abstract disks.
We need to be able to know which maniac is using ZFS or some other
weird filesystem that is going to munch as much RAM as possible
before we report it as used...

fs type is useful too...will need a mapping to the super block
magic listing.
2020-06-07 12:17:03 +01:00
Alastair Poole 5404906b11 machine: too much indentation. 2020-06-06 12:17:55 +01:00
Alastair Poole f61e780f0b bytes: use bytes for everything...
Convert Linux memory values to bytes rather than reducing the
granularity of every other OS which reports memory use in
bytes.

The previous method just made everything confusing when it
needn't be.
2020-06-05 15:32:11 +01:00
Alastair Poole c9a8d114df style: line length. 2020-06-05 13:04:02 +01:00
Alastair Poole 2114f5dd21 FreeBSD: Fix Memory Display.
Peter2121 is right, this is mostly bogus (depending on who you
speak to).
2020-06-05 11:44:54 +01:00
Alastair Poole 5725b911d7 mem: remove duplicate noise. 2020-06-03 13:54:08 +01:00
Alastair Poole 200d9860a2 misc: t i d y 2020-06-03 13:48:19 +01:00
Alastair Poole 515f4d73f7 cpu: pointless indentation.
Sometimes I wonder about myself....
2020-06-03 13:45:29 +01:00
Alastair Poole 2afc25494e cpu: remove pointless text. 2020-06-03 13:39:45 +01:00
Alastair Poole 0000464723 ui: remove unnecessary lines of code.
noise noise noise
2020-06-03 11:22:07 +01:00
Alastair Poole ceef9ff049 ui: don't use const positions. 2020-06-02 14:28:34 +01:00
Alastair Poole 6af4814590 style: meh meh meh 2020-06-02 13:23:41 +01:00
Alastair Poole a1d337618d style: More tidying.
...nothing to interest any users at all!
2020-06-02 13:19:08 +01:00
Alastair Poole bcea8ef753 style: rm tab 2020-05-31 19:46:51 +01:00
Alastair Poole 1bb13bdfa6 style: nothing of any significance. 2020-05-31 18:43:16 +01:00
Alastair Poole 0c98b55787 format: too many spaces. 2020-05-31 18:05:17 +01:00
Alastair Poole 143c613edd ui: Fix Scaling. 2020-05-28 10:08:03 +01:00
Alastair Poole 933e0ab15a ui: sizing.
Two simple changes that have a *positive* effect on sizing.
Initial sizing and then bogus field sizing bogusly...
2020-05-26 11:39:44 +01:00
Alastair Poole 39593732dc ui: Remove comments.
These aren't even useful. Let's have ZERO comments :)
It shouldn't be too complicated to understand.
2020-05-26 10:32:47 +01:00
Alastair Poole 95f9d63eb9 style: 80 cols where applicable.. 2020-05-24 14:41:13 +01:00
Alastair Poole 73c663c660 title: remove evisum from win title. 2020-05-24 13:47:48 +01:00
Alastair Poole 66f6c4eee1 style: Try to respect 80 columns.
Whether it should be 80 or 120 I'm not sure. I think i'll go
with the lower denominator as it's more inclusive.

EVAS_ macros need simplified (this might be too simple)...
2020-05-24 13:34:26 +01:00
Alastair Poole 162e6b7a41 style: improve indentation (function params). 2020-05-23 13:51:26 +01:00
Alastair Poole 01be01dd97 proc_view: fix top "tab" buttons 2020-05-20 11:16:07 +01:00
Alastair Poole 252abddf9c proc_view: padding 2020-05-19 11:20:32 +01:00
Alastair Poole eb428dc6e5 proc_view: tidy... 2020-05-18 22:31:40 +01:00
Alastair Poole 6b46fcea2a util: handle ampersand. 2020-05-18 20:54:27 +01:00
Alastair Poole 32ec3cc822 proc_view: fix man page string parse. 2020-05-18 18:48:53 +01:00
Alastair Poole 1532038b5d process_viewer: improve visual. 2020-05-18 15:52:35 +01:00
Alastair Poole ed69480619 ui: ffs 2020-05-18 12:31:27 +01:00
Alastair Poole 914f97e086 ui: create a generic cache API.
Reduce code duplication, create:

evisum_ui_item_cache_... functions.
2020-05-18 12:16:35 +01:00
Alastair Poole b88601ba7d proc_view: don't leak 2020-05-17 22:01:01 +01:00
Alastair Poole c546e69c03 changes; various.
Sorting threads.
Show version.
Fix bugs.
2020-05-17 19:30:00 +01:00
Alastair Poole 0aea127f8e process_view: Small Changes 2020-05-17 16:33:27 +01:00
Alastair Poole 4964d649e3 process: small changes to process win. 2020-05-17 13:56:21 +01:00
Alastair Poole 1700489973 ui: oops :) 2020-05-16 18:58:43 +01:00
Alastair Poole 67d354cc99 process: remove duplicate function call. 2020-05-16 17:13:31 +01:00
Alastair Poole 27c4d94680 process: When using KERN_PROC_ALL multiply thread cpu times. 2020-05-16 12:26:35 +01:00
Alastair Poole 88d1fe630d kvm: Reduce levels of indentation. 2020-05-16 12:12:09 +01:00
Alastair Poole 226579933b FreeBSD: Don't duplicate code. 2020-05-16 11:57:57 +01:00
Alastair Poole 65f77e1793 ui_disk: oops 2020-05-16 00:47:11 +01:00
Alastair Poole a7d2a01258 OpenBSD: Add TID and name also refactor. 2020-05-16 00:13:18 +01:00
Alastair Poole e2556687c6 process: Use statm 2020-05-15 23:42:05 +01:00
Alastair Poole 4d4ba4dec2 proc: Improve PID listing for macOS.
Improved PID listing. Old as fallback.
2020-05-15 23:00:44 +01:00
Alastair Poole b50d9b8dc6 FreeBSD: Add TID and name. 2020-05-15 21:27:59 +01:00
Alastair Poole 801e83d990 Linux: Add TID and name. 2020-05-15 21:17:00 +01:00
Alastair Poole ee290301af process: Add thread support (OpenBSD). 2020-05-15 16:15:27 +01:00
Alastair Poole e2234ef643 proc: remove unused vars 2020-05-15 14:31:27 +01:00
Alastair Poole 92e72dfec1 proc: remove duplicate code 2020-05-15 14:27:34 +01:00
Alastair Poole 9ae4eafa13 FreeBSD: Add Support for Thread States 2020-05-15 14:24:38 +01:00
Alastair Poole 444ad6474a ui_process: Example thread info output.
More to be done.
2020-05-15 13:48:59 +01:00
Alastair Poole 121bdd17de ui_process: remove more duplicate code. 2020-05-14 20:49:31 +01:00
Alastair Poole b9a1b3c154 ui_process: avoid some code duplication. 2020-05-14 19:21:23 +01:00
Alastair Poole 9360770593 ui: move thread functions. 2020-05-14 18:37:28 +01:00
Alastair Poole 263245eea7 ui_process: make this more responsive. 2020-05-14 17:35:57 +01:00
Alastair Poole d80d7154d8 ui_process: make "tabs" functional. 2020-05-14 17:08:07 +01:00
Alastair Poole d1c35e4baa process_ui: Use correct struct type 2020-05-14 16:38:35 +01:00
Alastair Poole dad739383c ui_process: Handle process termination. 2020-05-14 16:30:29 +01:00
Alastair Poole 3f6de6f8ac proc: fix man page display 2020-05-14 15:30:03 +01:00
Alastair Poole a6d1da406b ui: Redo Process Panel.
Let's create a window per-process instead of the panel.

I want people to learn, let's show the manpage for the process if
one exists.

this is not finished.
2020-05-14 14:43:44 +01:00
Alastair Poole 2083660ed6 remove macro test. 2020-05-14 00:30:13 +01:00
Alastair Poole 1794fe0a5f list: Reduce code duplication. 2020-05-13 23:55:40 +01:00
Alastair Poole 650250b196 ui: rearrangement 2020-05-13 21:55:58 +01:00
Alastair Poole dd4ab10381 machine: Fix header indent. 2020-05-13 21:13:01 +01:00
Alastair Poole f54666f98c evisum: ... 2020-05-13 13:15:58 +01:00
Alastair Poole 46d47d14fa ui: Scope 2020-05-13 12:29:35 +01:00
Alastair Poole 21236292f8 machine: rename from system. 2020-05-13 12:18:11 +01:00
Alastair Poole 48afb3f04b ui: Indent 2020-05-13 11:54:22 +01:00
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
Alastair Poole 920b61ee82 FIX: Fix crash when clicking on "empty" PID
This CAN happen. Avoid a crash here.
2019-12-04 20:36:38 +00:00
Alastair Poole 08752b1269 Fix small issue 2019-12-04 17:48:58 +00:00
Alastair Poole b09db930af meson: Use Meson over Make 2019-12-04 17:47:17 +00:00
Alastair Poole 5f76337553 system: HW_NCPUONLINE is OpenBSD-specific.
Seems this was added to mitigate spectre and does not exist
for FreeBSD. No other means of testing other platforms so
enable this only with OpenBSD for now.
2019-11-17 17:52:25 +00:00
Alastair Poole f472733f06 CPU: Only use active CPU count for generic CPU progress.
Some systems disable CPU cores. In the CPU tab this is fine,
but for an accurate representation of CPU load we need to check
for the number of active CPUs. E.g. OpenBSD disables HT on amd64
thus a 2-core system will only use 1 core.
2019-11-16 15:58:16 +00:00
Alastair Poole a5355e5357 Tingle: Merge changes from ext. tingle repo. 2019-10-05 11:49:34 +01:00
Alastair Poole 99435ea29c Fix typo and calculation 2019-09-30 21:29:33 +01:00
Alastair Poole 4acdba7ad6 disks: Check fopen return value. 2019-09-08 22:10:56 +01:00
Alastair Poole 3d51dfe687 Linux: Batteries.
Linux also provides battery vendor and model. As with FreeBSD
set the label for battery name "properly".
2019-09-08 01:13:43 +01:00
Alastair Poole f086b0d2d5 FreeBSD: Batteries.
Add vendor informaiton for evisum battery display.
2019-09-07 22:50:22 +01:00
Alastair Poole f07aeeb77b FreeBSD: Support multiple batteries.
This was much easier than I had reckoned.

Having the battery_names array is sadly a necessary evil for now.

Use the same logic for all platforms. Tested on FreeBSD.
Needs retesting on Linux, macOS and OpenBSD. The price of
support multiple operating systems!
2019-09-07 22:37:58 +01:00
Alastair Poole 6968d4274e Changes: Stylistic and fix one API call. 2019-09-07 11:37:15 +01:00
Alastair Poole 12ae98cab7 Minor changes 2019-09-06 00:26:05 +01:00
Alastair Poole 2f46f79e77 Silence some compiler warnings 2019-09-05 23:01:00 +01:00
Alastair Poole e5bbcd1f5c More tidying. 2019-09-05 22:33:38 +01:00
Alastair Poole f9995a3063 Fix a small text issue. 2019-09-03 18:18:47 +01:00
Alastair Poole 039944d555 Documents: Update.
Preparing to release something.
2019-09-03 18:14:26 +01:00
Alastair Poole 38d50d924b Make this more efficient. 2019-09-02 20:18:35 +01:00
Alastair Poole 967b5ce33e Release: Prepare 2019-09-01 17:50:38 +01:00
Alastair Poole 7116c0bde7 Use better battery names 2019-09-01 16:57:36 +01:00
Alastair Poole 64fc9d95a3 Make the UI more "responsive" 2019-09-01 16:06:17 +01:00
Alastair Poole 2b2c71ee3c UI: Bring back the improvements.
Seem to have isolated the issues. Let's reintroduce the UI
fixes.
2019-09-01 15:18:54 +01:00
Alastair Poole 3e42056b88 Tidying up 2019-09-01 15:11:40 +01:00
Alastair Poole 6fd8b24a06 Fix more 2019-09-01 15:07:35 +01:00
Alastair Poole a324cba8cf Add text for batteries 2019-09-01 15:03:38 +01:00
Alastair Poole 09022fa5a3 memory: let's free this. 2019-09-01 14:59:53 +01:00
Alastair Poole 6ba6c25135 Batteries: Add multiple suppor 2019-09-01 14:54:27 +01:00
Alastair Poole 4792cd07e4 Fix: Let's ensure we can properly escape this function.
Thanks to Apostolos Bartziokas for his patience and testing.
His commitment is very valuable.
2019-09-01 14:22:40 +01:00
Alastair Poole 37cb378cf9 Make sure we exit this hole 2019-09-01 14:04:40 +01:00
Alastair Poole 2c2930cc60 Fixe 2019-09-01 12:41:56 +01:00
Alastair Poole 655dacb953 Fix lazy typo breakage. 2019-08-30 20:45:32 +01:00
Alastair Poole 8ddde14287 main: exit on close.
We don't lose any data so just exit here.
2019-08-30 20:44:28 +01:00
Alastair Poole 9b98d23f41 Revert "Changes:"
This reverts commit d8714702fb.
2019-08-30 20:35:46 +01:00
Alastair Poole f9dd314951 Fix issues with Linux batteries and leak 2019-08-29 23:55:43 +01:00
Alastair Poole d8714702fb Changes:
Some minor changes to visuals for spacing.

Also on window close, just exit, there's nothing to be
corrupted.
2019-08-28 00:10:15 +01:00
Alastair Poole 4397b3eafc OpenBSD: Stack issues. 2019-08-24 16:35:41 +01:00
Alastair Poole 203f7b96d0 UI: Minor improvements 2019-08-24 16:28:56 +01:00
Alastair Poole c026f9d5ad Startup and Shutdown: Fix.
Let's only draw the window when we have content and destroy the
window during shutdown.

This is much prettier.
2019-08-24 15:11:32 +01:00
Alastair Poole 17d4a53db4 Makefile: Fix. 2019-08-24 14:57:05 +01:00
Alastair Poole 4694cc9484 VERSION: 0.2.3 2019-06-21 18:16:49 +01:00
Alastair Poole f02bacbc61 Main: Fix a bad bug displaying memory usage. 2019-06-21 18:15:26 +01:00
Alastair Poole d5fef62bda Fix: This always true. 2019-06-09 18:52:57 +01:00
Alastair Poole 16c66fac17 UI: Make the text for command name fit. 2019-06-09 18:48:43 +01:00
Alastair Poole 994f1ea1b3 system: fix typo causing bug. 2019-06-08 23:53:10 +01:00
Alastair Poole cced6b35fa Changes: Improve the program.
Some visual changes, additions and fixes.
2019-06-08 23:39:15 +01:00
Alastair Poole 56f2667451 OpenBSD: Unified CPU polling API.
Further testing proves we can use one approach for both SP and MP
machines.
2019-05-25 16:24:55 +01:00
Alastair Poole 95f81498c0 OpenBSD: Fix SP. 2019-05-25 16:03:38 +01:00
Alastair Poole 5860cd7351 Fixes: Multiple Batteries and CPU on OpenBSD/Linux 2019-05-25 15:34:33 +01:00
Hermet Park 7ee26f974a tingle: ++ pthread lib dependency. 2019-01-22 11:06:14 +09:00
Alastair Poole 8a9dfad663 process: fix bogus state names on other OS. 2019-01-17 11:13:09 +00:00
Alastair Poole ca767ac87b UI: Visual changes to improve layout.
Minor changes to improve rendering of process information
text.
2019-01-17 10:57:58 +00:00
Alastair Poole 7262b87916 ui: erroneous spacing. 2018-11-04 13:19:14 +00:00
Alastair Poole 8b8ac6d51d ui: Remove duplicate code. 2018-10-25 13:59:51 +01:00
Alastair Poole 11832c587a macos: use newer audio API for 10.11. 2018-10-24 18:03:38 +01:00
Alastair Poole d7523502fe ui: remove duplicate code. 2018-10-24 13:59:36 +01:00
Alastair Poole 102209c542 ui: refactor. 2018-10-24 13:27:53 +01:00
Alastair Poole 24f522b713 ui: make this mnore efficient. 2018-10-24 11:49:27 +01:00
Alastair Poole 93d48c1403 evisum: add tingle command-line helper. 2018-10-17 10:39:58 +01:00
Alastair Poole 8076a4b96a ui: ensure we clean up properly before exit.
Ensure timer callback gets cancelled before exitting
the mainloop.
2018-10-17 10:20:54 +01:00
Alastair Poole a9a2b7c671 ui: slight rearrangement. 2018-10-12 13:10:37 +01:00
Alastair Poole b3d388ecbf rel: 0.2.0
Last release before redesign.
2018-10-09 12:45:27 +01:00
Alastair Poole d4bac51dc8 ui: update quicker when changing unit formats. 2018-10-03 17:37:57 +01:00
Alastair Poole e614491e21 ui: do not use strcasecmp here! 2018-10-02 15:46:09 +01:00
Alastair Poole 45b3dcfa87 Refactoring and fixing stuff. 2018-10-02 15:38:06 +01:00
Alastair Poole f5a1292c39 format: allow some key presses.
This is totally bogus. Need to reboot into linux and sort out
the horrible formatting and spacing etc etc etc.
2018-10-02 14:56:25 +01:00
Alastair Poole 1e9785b026 UI: fix process list geometry on resize. 2018-09-25 11:38:06 +01:00
Alastair Poole e0b5a0c42d UI: fix broken size_hint on wrong object. 2018-08-27 15:36:35 +01:00
Alastair Poole 9413dedaeb Prepare for minor release.
Seems my bogus makefiles had issues for anyone trying
to make a package.
2018-06-17 21:52:38 +01:00
Alastair Poole 4d415c8b81 Fix: makefile and linux disk parse? 2018-06-17 17:36:25 +01:00
Alastair Poole 7915baed6e Make preparations of a public release. 2018-06-17 08:45:46 +01:00
Alastair Poole 175034919a shutdown: let's shutdown the same everywhere.
Also minor refactor in main.c
2018-06-16 21:31:49 +01:00
Alastair Poole 56859ad90f Shutdown: hide window as we begin to terminate. 2018-06-16 18:25:46 +01:00
Alastair Poole a8826641d0 Shutdown properly.
Ask threads to terminate and shutdown EFL properly.
2018-06-16 15:09:10 +01:00
Alastair Poole 8efee813e0 ui: display celcius label properly. 2018-06-16 00:07:37 +01:00
Alastair Poole 1e679e290f Remove unused type. 2018-06-11 16:43:03 +01:00
Alastair Poole 53a0a5bf49 Add more 2018-06-11 11:12:02 +01:00
Alastair Poole d0e38dbf6e Refactor again. 2018-06-10 17:06:34 +01:00
Alastair Poole ed1de9bc7b Cast to double. 2018-06-10 16:38:46 +01:00
Alastair Poole a82a33f546 Fix bat 2018-06-10 14:17:32 +01:00
Alastair Poole 08e57b1f95 Add more 2018-06-10 14:09:44 +01:00
Alastair Poole e29464aee8 Improve UI. 2018-06-10 09:32:15 +01:00
Alastair Poole 91b09ab7c2 Minor refactor. 2018-06-09 19:56:17 +01:00
Alastair Poole 9c27291ea0 Minor refactor. 2018-06-09 19:55:04 +01:00
Alastair Poole a49c1e1473 Fix MacOS compilation. 2018-06-09 18:48:22 +01:00
Alastair Poole d559ae3537 Fix Linux disk usage. 2018-06-09 18:39:37 +01:00
Alastair Poole b84ab23c09 Add FreeBSD support for mount size/usage. 2018-06-09 18:31:53 +01:00
Alastair Poole a1bfadafaa Add support for disk tab. 2018-06-09 11:30:07 +01:00
Alastair Poole 115dcfde07 Add makefile install option. 2018-06-07 10:30:03 +01:00
Alastair Poole da8dde89fe ui: make sure we bring the item into view. 2018-06-06 19:22:38 +01:00
Alastair Poole 576e86824e rename from esysinfo -> evisum 2018-06-05 15:26:18 +01:00
Alastair Poole de2818a394 First commit 2018-06-04 11:11:21 +01:00