summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2022-10-20feature: Implement PgUp and PgDown in the help dialog. (#841)lroobrou
2022-10-16refactor: move some state code around (#839)Clement Tsang
2022-10-16enable gpu mem cli and update docs for arc/gpu mem (#836)Justin Martin
2022-10-15Revert "refactor: remove heim network usage (#833)"ClementTsang
This reverts commit 913562e7e6867e3eb32cdb034792e01cb6e98e81.
2022-10-15refactor: remove heim network usage (#833)Clement Tsang
2022-10-15other: make gpu memory collection configurable (#835)Clement Tsang
Follow-up to #794, this makes GPU memory collection toggleable.
2022-10-15feature: add gpu ram collector for nvidia feature flag (#794)Justin Martin
* add gpu ram collector for nvidia feature flag * add row for TX in basic layout * size gpu point_vec * use vec for mem basic widget drawing * remove to_owned * code review: change mem tuple to struct with cfg fields, rename mem_basic ratio and use vec macro for layout * build on freebsd
2022-10-15other: add quick test for building clap app (#834)Clement Tsang
2022-10-13refactor: move point definition to tui_rs widget (#832)Clement Tsang
2022-10-13refactor: switch to pipe gauge implementation for basic cpu + mem (#829)Clement Tsang
* refactor: switch to pipe gauge implementation for basic cpu + mem * fix incorrect new basic cpu chunking scheme, revert to old one
2022-10-12refactor: switch to associated type for SortsRow (#828)Clement Tsang
2022-10-12refactor: tables V2 (#749)Clement Tsang
* refactor: move to new data table implementation * more work towards refactor * move disk and temp over, fix longstanding bug with disk and temp if removing the last value and selected * work towards porting over CPU work towards porting over CPU fix typo partially port over cpu, fix some potentially inefficient concat_string calls more work towards cpu widget migration some refactoring * sortable data sortable data more refactoring some sort refactoring more refactoringgggg column refactoring renaming and reorganizing more refactoring regarding column logic add sort arrows again * move over sort menu * port over process port over process precommit temp temp two, remember to squash work fix broken ltr calculation and CPU hiding add back row styling temp fix a bunch of issues, get proc working more fixes around click fix frozen issues * fix dd process killing * revert some of the persistent config changes from #257 * fix colouring for trees * fix missing entries in tree * keep columns if there is no data * add and remove tests * Fix ellipsis
2022-10-11bug: add bindings to grab ppid in some cases on macos (#825)Clement Tsang
2022-10-07fix wrong unit being used for memory in sysinfo data (#824)Clement Tsang
* fix wrong unit being used for memory in sysinfo data * update sysinfo to 0.26.4 for unsupported reasons w/ ntapi
2022-09-23bug: fix missing temp path locations to check on Linux (#816)Clement Tsang
* bug: fix missing temp path locations to check on Linux * remember to divide by a thousand in thermal_zone
2022-09-18refactor: minor cleanup of linux disk code (#813)Clement Tsang
Since we no longer use heim for Linux disk checking, we can remove the async reliance and update some file names/comments to be more appropriate to the current state of the code. We also do some small cleanup.
2022-09-17refactor: replace heim temp conversion code (#811)Clement Tsang
2022-09-16Replace heim with sysfs and dont wake devices (#805)Diana
* Replace heim with sysfs and dont wake devices This commit replaces heim sensor reading with manual sysfs sensor reading, and skips reading sensors for any device that is in ACPI D3cold This has the notable downside of still keeping a device awake, which I hope to solve in a later commit * Update docs They were referring to files i ultimately decided against using in this implementation, and so were no longer relevant to document. * has_temp check should be before reading hwmon_name * should_read_temp doesn't have to be mutable * Fix sensor for zenpower kernel module
2022-09-16deps: update sysinfo to 0.26.2 (#806)Clement Tsang
* deps: update sysinfo to 0.26.2 This dependency update has some nice things in store for us: - MacOS M1 temperature support - Bevy of bug fixes * update documentation * some fixes
2022-09-03other: Clarify help menu (#800)Clement Tsang
* other: clarify that numbers are for help menu * bug: fix incorrect overscroll check, should be min
2022-08-22feature: Add zfs feature flag for arc memory (#784)Justin Martin
* freebsd clippy * add arc support * Code Review: moved runtime cfg checks to compile time and formatting * remove compile platform checks * add zfs feature flag to get_arc_data
2022-08-15refactor: minor tweak to update_position codeClementTsang
2022-08-15feature: clamp scrolling (#775)ViridiCanis
* clamp scrolling when trying to go beyond the top or bottom * add more 'do nothing' cases to `update_position` * adjust tests to clamping scrolling * fixup! add more 'do nothing' cases to `update_position` * fixup! clamp scrolling when trying to go beyond the top or bottom * fixup! fixup! clamp scrolling when trying to go beyond the top or bottom
2022-08-14refactor: change max_scroll_index usage to better reflect name (#783)Clement Tsang
Tweaks `max_scroll_index` usage in the help menu to better reflect its name of being a max index, not a max index bound. For example, before, the index could not be equal to or more than `max_scroll_index`, but the name would have implied that it should be less than or equal to it.
2022-08-14Feature: half page scrolling (#774)ViridiCanis
* add ctrl-u/ctrl-d to process table * add help text for ctrl-u/ctrl-d * add ctrl-u/ctrl-d to help dialog * store height of help menu, fix overscroll with half page down on help menu Co-authored-by: ClementTsang <34804052+ClementTsang@users.noreply.github.com>
2022-08-13clippy: fix clippy eq warningClementTsang
2022-07-23Implement support for FreeBSD (#766)Wesley Moore
* WIP FreeBSD support * Implement get_cpu_data_list for FreeBSD * Implement disks for FreeBSD It doesn't work though as sysinfo doesn't make the device name available. * Use libxo to read process cpu info on FreeBSD * Populate get_io_usage with libxo too Actual I/O stats still aren't populated though as there's not an easy source for them. * Share more processes code between macos and freebsd * Extract function for deserializing libxo output on FreeBSD * Implement filtering of disks in FreeBSD * Clean up memory data collection * Update module docs
2022-07-07bug: fix total read/write units having /s (#763)Clement Tsang
Fixes the total read/write columns in processes using the wrong unit (having /s).
2022-06-29feature: add note on how to exit if running in non-terminal (#761)Clement Tsang
Addition to #760, adds an extra message so users know how to exit in this scenario.
2022-06-28feature: add check for whether the output is to a terminal (#760)Clement Tsang
Adds a warning if the user is calling bottom from an environment where the output is not a terminal.
2022-06-14docs: re-enable lib docs for development purposes (#750)Clement Tsang
Enables lib docs, primarily intended for dev use. Also change some existing documentation based on warnings (mainly broken/bare links).
2022-06-03refactoring: Move around components and state (#746)Clement Tsang
A small refactor to move some state/component files around in terms of file structure and code location. Should have no effect on logic.
2022-06-02refactor: unify all mod.rs structure to 2018 style (#742)Clement Tsang
This is a pretty small change, but at least _for now_, unifies all `mod.rs` use cases to the 2018 style for consistency. I personally don't mind going back to it on a case-by-case basis in the future if it results in cleaner code, though.
2022-05-17other: make the graph legend the same color as the graph (#732)Clement Tsang
This makes the graph legend the same color as the rest of the graph.
2022-05-16bug: hide user column for non-unixClementTsang
2022-05-16bug: fix a variety of bugsClementTsang
Bugs squashed: - Incorrect column sizing for flex cases - Case where the sort menu bounds were still existing despite being hidden - Proc widget not actually taking into account the calculated row widths in some cases during data conversion.
2022-05-15refactor: simplify partial ordering fn, clean up codeClementTsang
2022-05-15refactor: remove redundant get_ordering fn, add testsClementTsang
2022-05-15bug: fix issues with macos and windows during refactorClementTsang
2022-05-15other: delete redundant code, run clippy and fmtClementTsang
2022-05-15refactor: more work towards unifying process codeClementTsang
A bunch of work towards also refactoring how the process widget gathers and converts data.
2022-05-15refactor: begin migration of process widgetClementTsang
2022-05-15refactor: heavily simplify the old network legendClementTsang
2022-05-07refactor: move CPU graph over to new systemClementTsang
2022-05-07refactor: fix off-by-one bug with getting start positionClementTsang
2022-05-07refactor: per-row styling, remove seemingly redundant table codeClementTsang
2022-05-07refactor: don't draw header if too shortClementTsang
2022-05-07refactor: bind the start and end ranges for tablesClementTsang
2022-05-07refactor: remove unneeded freeze paramClementTsang
2022-05-07refactor: consolidate disk and temp table drawing, refactor stateClementTsang
Disk and temp tables now share the same drawing logic, as well as consolidating the "text table" states into one single state, as opposed to two separate states (one for scroll and one for width calculations). BTW I know this is kinda an ugly design - creating a giant struct to call a function - hopefully that's temporary, I want to do a bigger refactor to consolidate more stuff together and therefore avoid this problem, but baby steps, right?