Commit Graph

626 Commits

Author SHA1 Message Date
Alastair Poole 3ceaad0afd machine: ifdef chopping and splicing functions.
This stuff is bad...where did i learn to be doing such things.
2020-07-11 18:34:49 +01:00
Alastair Poole fe30a5a72f machine: ifdef chopping within functions.
I don't belive in ifdef blocks within a single function. Ideally
keep the blocks separate at worst. I think if this is necessary
at the time it's permissible but overall it's fucking ugly.
2020-07-11 18:30:23 +01:00
Alastair Poole c0c26ff882 machine: linux battery model/vendor purge
If enough people complain i'll bring this back, but for now keep
it simple until i can test it again properly...it works but
it's horrible
2020-07-11 18:24:30 +01:00
Alastair Poole aa1822c212 machine: ahead of the game...
Meh, we can't yet query by type.
2020-07-11 18:48:13 +01:00
Alastair Poole d1d4d0fb9e openbsd: fix for non-acpi batteries 2020-07-11 17:23:34 +01:00
Alastair Poole 09e8249689 machine: Explain use of machine and tidy Linuxisms
The functions machine.h provides are deliberately using standard
functions from a base install of the operating system. This IS
intentional. I'd like to be able to modify and reuse this anywhere
without having to untangle additional dependencies from machine to
machine.
2020-07-11 13:09:38 +01:00
Alastair Poole b018c8a3f7 machine: tidy declaration 2020-07-11 02:04:48 +01:00
Alastair Poole 9178cbc0d3 cosmetics: if, for, while, wtf 2020-07-10 19:12:30 +01:00
Alastair Poole ff4a80bd87 network: handle multiple addresses on same interface. 2020-07-10 15:04:06 +01:00
Alastair Poole 3c2b50adea typo 2020-07-10 12:00:03 +01:00
Alastair Poole c0f6d74903 Add Copyright. 2020-07-10 11:58:09 +01:00
Alastair Poole 5c3a3cfe10 machine: Include .bogox files for clarity.
To make this maintainable (for now), split the machine querying
code into separate files. I'd like to be able to modify the file
without fear of breaking it here or there. Also, for anyone who
wants to make a change or ammendment doing this is cleaner.
2020-07-10 11:50:49 +01:00
Alastair Poole 05cfc11cf5 machine: unnused 2020-07-10 10:50:35 +01:00
Alastair Poole 9e62816cdc macros: MEMSZ macro. 2020-07-09 23:39:15 +01:00
Alastair Poole 9ed9bd3bb5 macos: wrong, wrong, wrong.
1) test stuff more.
2) Don't have too many SSH sessions open and querying the wrong
machines!!!
2020-07-09 22:13:25 +01:00
Alastair Poole 554eae2965 proc: cast linux. 2020-07-09 21:37:34 +01:00
Alastair Poole 8f2a25ccfb macros: underflow, overflow, wombling free....
I can see this happening elsewhere, we'll need to use these in
other parts where struct members are of varying signage...
2020-07-09 20:23:14 +01:00
Alastair Poole a46f2718ca machine: simple macros to cast. 2020-07-09 16:59:05 +01:00
Alastair Poole d71b1a2651 ui: indent and unnecessary fn call. 2020-07-04 19:15:03 +01:00
Alastair Poole fe8a9b73ba ui: Callback data. 2020-07-03 13:54:59 +01:00
Alastair Poole 6a16a9d414 about: Don't use static global in animator thread.
A global would work, or just a pointer as here.
IDK why Linux and FreeBSD didn't have any issues here.
2020-07-03 13:20:24 +01:00
Alastair Poole 1b053b86b1 ui: Call proc_info_by_pid as needed.
This is slower but it's less prone to borkage.
2020-07-03 12:34:55 +01:00
Alastair Poole b9cbf8e68a Revert "menu: Use a global to store menu cache."
This isn't a good change or fix.

This reverts commit 55113b5a09.
2020-07-03 10:32:07 +01:00
Alastair Poole 55113b5a09 menu: Use a global to store menu cache.
This was causing some problems with OpenBSD. Use a global
to store the state of the menu item and pass that to the
callbacks.
2020-07-03 00:17:37 +01:00
Alastair Poole 5b7c10ff0d icons: Icons from the public domain.
We can remove the GPL stuff now (Faenza)...

Thanks rasterman...Minor tweaking to be done with a couple of
the icons
2020-07-02 14:55:18 +01:00
Alastair Poole e358799e99 0.5.0-RFC: Not quite.
No changes to text.
2020-07-01 14:14:15 +01:00
Alastair Poole b9cb1dfa49 startup: See how this behaves 2020-07-01 13:09:32 +01:00
Alastair Poole efa7f4b083 menu: use static storage. 2020-07-01 12:26:05 +01:00
Alastair Poole b53b1ecbcb debug: fallback 2020-07-01 12:02:01 +01:00
Alastair Poole 73b2d015f1 evisum: Minor Changes 2020-07-01 11:00:19 +01:00
Alastair Poole 02b9ee4531 about: text scroll begin. 2020-06-30 19:44:40 +01:00
Alastair Poole b799de0a1d views: make windows dialog windows.
This is handy in a few ways.
2020-06-30 14:03:18 +01:00
Alastair Poole a5461ad416 shutdown: allow control of cleaning up.
Flag to shutdown now or ordered triggering callbacks.
2020-06-30 13:23:01 +01:00
Alastair Poole d2a72510cb evisum: Clean up orderly.
Whether this is meritted, I don't know. It might be useful in
the future.
2020-06-30 13:05:35 +01:00
Alastair Poole 1f0d8827b8 changes: UI
Small changes.
2020-06-30 12:13:54 +01:00
Alastair Poole 4df3d73fe0 ui: Fonts and Sorting.
Fonts should be normal sized. If fonts aren't looking good, just
bump up the overall ELM scaling, it works much better!

Indicate which sort we are using in the process list.
2020-06-30 11:28:20 +01:00
Alastair Poole 045f1766b5 util: size and shades 2020-06-29 22:15:21 +01:00
Alastair Poole 5b50447eaa icon: find.png 2020-06-29 21:42:31 +01:00
Alastair Poole 7241ad2da0 ui: menu iconz 2020-06-29 22:23:56 +01:00
Alastair Poole 5763b86213 about: do the scroll thing :) 2020-06-29 16:05:30 +01:00
Alastair Poole 5f134b0e82 about: Basic about box 2020-06-29 15:18:35 +01:00
Alastair Poole f3b8302af3 mem: remove unused object 2020-06-29 09:53:08 +01:00
Alastair Poole d3a724f1a7 disk: reset on close 2020-06-28 21:32:21 +01:00
Alastair Poole 9017e61da1 fin: padding. 2020-06-28 20:56:57 +01:00
Alastair Poole 27fd9c5322 win: first run size. 2020-06-28 20:04:03 +01:00
Alastair Poole 310b967bec ui: process list spacing. 2020-06-28 19:58:20 +01:00
Alastair Poole fa81b3ab79 memory: window size.
Too big, make smaller.
2020-06-28 19:42:38 +01:00
Alastair Poole e96d62b44f cpu: delete window straight away 2020-06-28 19:18:54 +01:00
Alastair Poole 35323ea227 evisum: Traditional
Make the UI simpler. Give everything a window. It's not clever
to only allow one action at a time. I think it seemed cool
because every other environment is simplifying the interface.
I don't really agree with this. Also some "tabs" don't
currently justify having the whole window.

hashtag **** it!
2020-06-28 20:02:07 +01:00
Alastair Poole 3e0dfd9d7d cpu: bg colour 2020-06-28 12:28:18 +01:00
Alastair Poole 9ff3706a1b sizing: this will have to do for now 2020-06-27 15:35:41 +01:00
Alastair Poole be17d6ee10 cpu: LoC 2020-06-26 21:57:38 +01:00
Alastair Poole 760994ee34 util: Sizing. 2020-06-26 15:42:55 +01:00
Alastair Poole a00e6156ab ui: silence clang warning 2020-06-26 14:38:43 +01:00
Alastair Poole 0416157c13 cpu: simpler, work. 2020-06-26 14:32:51 +01:00
Alastair Poole 13bde5c66e ui: Font size. 2020-06-26 14:32:16 +01:00
Alastair Poole fc9afb8a24 ui: Max width for other content.
If this content is allowed to expand it looks AWFUL.
2020-06-26 12:42:21 +01:00
Alastair Poole d798bce95b cpu: smoothness 2020-06-25 00:36:11 +01:00
Alastair Poole 7a0e476fda cpu: less mangle
Less buggy...
2020-06-24 23:12:16 +01:00
Alastair Poole 8a100e0bbf machine: add variable CPU poll. 2020-06-24 23:10:50 +01:00
Alastair Poole 908721a720 disks: align top. 2020-06-24 23:09:16 +01:00
Alastair Poole 63ea9ffb1d ui_cpu: flicker, position.
On resize, restart for now.
2020-06-24 17:09:06 +01:00
Alastair Poole 6cba237f05 ui: padding 2020-06-24 15:26:18 +01:00
Alastair Poole 55e172db49 cpu: clear graph with _data_update_add. 2020-06-24 14:11:56 +01:00
Alastair Poole f6a279c4a7 LICENSE: List ISC License. 2020-06-24 13:59:10 +01:00
Alastair Poole b13e42e6ea ui: Fix LARGE fonts 2020-06-24 13:52:53 +01:00
Alastair Poole ad7ab21ae5 cpu: update more frequently 2020-06-24 13:11:10 +01:00
Alastair Poole dd67c71022 ui: add basic cpu core graphs
You can enable/disable per-cpu...

Not done
2020-06-24 01:06:08 +01:00
Alastair Poole 136f5d5c9c ui: dont expand frame 2020-06-22 11:43:13 +01:00
Alastair Poole 95f6967c5e ui: button_add and tab_add.
Consistent tab sizing and button sizing.
2020-06-21 17:14:35 +01:00
Alastair Poole 700a21573d process_view: Keep new windows close.
On larger displays the process view can be a long way from the
main window when created. It's SUPER annoying. This will keep
them close enough for now.
2020-06-21 16:54:10 +01:00
Alastair Poole e66cb85e64 ui: adding textblock api.
This might need more work.
2020-06-21 15:30:34 +01:00
Alastair Poole c0f6f39970 ui_util: Generic UI API.
Move these into their own place.
2020-06-21 14:03:39 +01:00
Alastair Poole 952764df07 ui: Button Sizing.
Size elm_widget based on the parent container's size.

Don't set min_size_hint on ANY ELM widget. This is the LAW.
2020-06-21 13:37:06 +01:00
Alastair Poole 13c7e3b69a ui: improve "tabs" and "buttons" of note 2020-06-21 12:41:34 +01:00
Alastair Poole e26e1bb392 ui: button sizing. 2020-06-20 11:02:23 +01:00
Alastair Poole 18fa8063e1 machine: file_contents 2020-06-20 00:48:15 +01:00
Alastair Poole 70f7eb5c94 ui: Button Label 2020-06-19 15:21:16 +01:00
Alastair Poole 24cbca1c09 ui: TRY to improve Storage and Misc Tab Design.
This looks better. It's not perfect by a long shot.

Need to fix CPU and meh meh memory
2020-06-19 12:52:00 +01:00
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