summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2023-04-16deps: migrate from tui to ratatui (#1086)Clement Tsang
2023-04-15other: update default config generation to show cache (#1102)Clement Tsang
2023-04-15refactor: clean up data init sleep duration code (#1101)Clement Tsang
* refactor: clean up data init sleep duration code * const
2023-04-15other: Speed up first draw and first data collection (#1100)Clement Tsang
* other: add first draw immediately after initialization Previously, I would only do the first draw after an event triggered, so this just makes it so that I *always* draw once first. Some widgets look a bit weird with no data, but this is fine I guess if we want to gain a bit of responsiveness. * other: potentially shorten first time to get data * other: move event loop thread init earlier in app initialization
2023-04-12feature: add buffer and cache memory (#1063)Twan Stok
* First implementation of cache memory data collection, mostly copied from RAM and swap implementations * First implementation of cache memory display, copied from RAM and swap implementations. placed cache as second in the list as it is more similar to the RAM than any other item in the list * expanded comment to explain method. * rustfmt * all cache-related code excluded on windows, in the process refactored src/data_conversion.rs convert_mem_label() to convert a single label instead of all at once * better factoring-out of cache memory logic to allow individual disabling * added --enable_cache_memory flag, disabled cache memory collection by default * renamed CCH to CHE not sure how i messed that up * changelog updated * Added command line flag documentation * updated config file documentation * specified that buffer and cache memory display does not work on windows * resolved merge conflicts * added documentation to cache memory data collection * capitalized Windows * implemented missing canvas styling logic * fixed misplaced no-windows flag * reduced colour collisions, as cache colour was the same as the first GPU colour * made FIFTH_COLOUR constant windows-only * Revert "made FIFTH_COLOUR constant windows-only" This reverts commit 72698f1dd7e2de7dbda843708ece6a3dba66f94f. * made FIFTH_COLOUR constant non-windows-only * minor fix for basic mode row count * Update src/app/data_harvester/memory/sysinfo.rs Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> * Update src/canvas/widgets/mem_basic.rs Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> * updated default_config.toml * formatting --------- Co-authored-by: ClementTsang <34804052+ClementTsang@users.noreply.github.com>
2023-04-12deps: Switch to using hashbrown for general hashmap usage (#1092)Clement Tsang
* deps: replace fxhash with hashbrown + ahash * replace std hashmap with hashbrown + ahash * fmt * some more fmt
2023-04-11deps: bump once_cell and related dependencies (#1090)Clement Tsang
* deps: bump once_cell and related dependencies Now that we've removed heim, I can bump up other dependencies that relied on newer versions of once_cell. * Add some dhat code * dhat gitignore
2023-04-10refactor: migrate disk collection code off of heim, remove heim (#1064)Clement Tsang
Migrates existing heim-based disk data collection code off of it to either sysinfo or vendored code based on heim/sysinfo/other sources. This also allows us to remove heim completely from bottom. --- * refactor: fix some refresh code * remove async from the freebsd code * some file/implementation organization Turns out sysinfo lacks a lot of data I need. I can still use it for the Windows disk usage implementation, but I'm probably going to manually implement macos/linux usage and all io usage stats. * more restructuring * Some other fixes * remove futures * ready for some big changes? * big changes * linux io + reads * use lossy conversion for mount point * add windows refresh * so long heim, and thanks for all the fish * fix filter behaviour, remove string allocation when reading lines * rename unix -> system for more accurate file struct representation * fix freebsd * port generic unix partition code * add bindings and fix errors * finish macOS bindings for I/O * disable conform check, this seems to... make disk I/O work on macOS????? * fix linux * add safety comments * more comments * update changelog * changelog * We're going full 0.9.0 for this * update lock * fix some typing * bleh * some file management * hoist out get_disk_usage * fix some stuff for Windows * typing and remove dead code allow lint * unify typing * fix * fix 2 * macOS fix * Add bindings file for windows * add windows implementation * fix macos
2023-04-07deps: update some minor dependency versions (#1087)Clement Tsang
* deps: update some minor dependency versions Bump some dependency versions as of April 7, 2023. Note I skipped any updates tied to futures as that's getting removed along with heim in the near future (heh). * fix rename on Windows from K32GetPerformanceInfo -> GetPerformanceInfo
2023-04-05other: add clippy lints to deny todo and unimplemented (#1085)Clement Tsang
2023-04-03other: add test for multiple regexes in filter (#1082)Clement Tsang
2023-03-27deps: bump sysinfo to 0.28 (#1078)Clement Tsang
* deps: update sysinfo to 0.28.0 * 0.28.1 * 0.28.2 * 0.28.3 * 0.28.4
2023-03-26refactor: unify on using bytes for the memory unit when harvesting (#1077)Clement Tsang
* refactor: unify on using bytes for the memory unit when harvesting * some ordering stuff that doesn't mean much * some comments * more fixes * refactor: rename * comments v2 * some more cleanup * remove uninlined_format_args allow
2023-03-25refactor: clean up some data collection refresh code, refresh sysinfo lists ↵Clement Tsang
on loop (#1076) * refactor: clean up some data collection refresh/init code * move out battery * missing setting memory value for proc * stop segfault on macos * unit * oopsie
2023-03-15deps: switch back to crossterm 0.26.1 with fix to double keypress (#1068)Clement Tsang
2023-03-11clippy: appease clippy as of Rust 1.68.0 (#1055)Clement Tsang
* clippy: fix derivable_impls clippy warning This was done using `cargo clippy --fix` * cargo fmt after autofix
2023-03-08refactor: use internal committed memory calculation for Windows (#1051)Clement Tsang
* refactor: use internal committed memory calculation for Windows * comments
2023-03-08other: deny missing safety docs and add them (#1053)Clement Tsang
2023-03-07refactor: more data collection cleanup (#1047)Clement Tsang
* refactor: more memory collection cleanup * more cleanup * clean up data_harvester, remove heim sensor flag Separate out most individual components to separate functions. Also remove Linux's usage of heim's sensors feature, since I wasn't using it apparently. * clean up GPU section * fix cond * fix feature flags * more cleanup * even more cleanup
2023-03-05refactor: Clean up memory collection code (#1045)Clement Tsang
2023-03-04re-enable zfs feature (#1044)Justin Martin
2023-03-04refactor: migrate network collection to sysinfo (#1041)Clement Tsang
* refactor: migrate network collection to sysinfo * remove net feature from heim * comments and changelog
2023-03-03docs: update changelog and some comments (#1040)Clement Tsang
2023-03-03fix: is_list_ignored=false filters for network and temperature (#1037)Dmitry Valter
Use filter logic from network/sysinfo in temperature and network/heim harvesters. Previously is_list_ignored=false filter configs would silently accept every sensor and every interface.
2023-03-03refactor: migrate memory collection to sysinfo for all platforms (#1036)Clement Tsang
* cleanup * refactor: remove heim memory code * add missing updates, remove heim memory feature * restrict export visibility * some refactoring, remove smol * gpu feature
2023-03-02deps: bump procfs to 0.15.1 (#1038)Clement Tsang
2023-03-02refactor: migrate CPU from heim to sysinfo for all platforms (#1035)Clement Tsang
* refactor: migrate CPU from heim to sysinfo for all platforms * fix windows and macos imports * simplify a bit of code * cleanup
2023-03-01other: switch to toml_edit (#1034)Clement Tsang
2023-02-27deps: bump nvml to 0.9.0 (#1032)Clement Tsang
2023-02-25refactor: clean up some options code (#1029)Clement Tsang
* remove some dead code * use macros to help clean up clutter for binary flags * add test * group * fix using gpu feature
2023-02-20other: move terminal check after the config check (#1027)Clement Tsang
2023-02-20change: show process in tree if any ancestor or descendent matches (#1026)Clement Tsang
* refactor: optimize kept list in tree to just store filtered values in a set * change: show all direct children of a tree process children if the parent matches * change: show process in tree if any ancestor or descendent matches
2023-02-19other: support hw.temperature-based temps on FreeBSD (#1024)Clement Tsang
* other: support hw.temperature-based temps for FreeBSD * update changelog * enable sysctl always for freebsd
2023-02-18feature: support 3-char hex colours (#1022)Clement Tsang
2023-02-18bug: fix selected text bg colour being wrong if only the fg colour was set ↵Clement Tsang
(#1021) * rename file to be more generic * fix selected text BG colour being wrong by default * update changelog * add test for bug
2023-02-10feature: Add support for displaying process usernames on Windows (#1016)Michael Bikovitsky
2023-01-31other: replace deprecated `value_of` and `is_present` in clapspital
* Upgrade clap to 3.2.2 to allow future fix warnings * cargo fmt fix * Replaced deprecated `value_of` and `is_present`, builds with no warnings, clap 3.2.2 * cargo fmt * updated according to comments. builds fine, cargo test fine * Match some versions * Update Cargo.lock * Fix typo, mb --------- Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2023-01-27other: ignore uninlined_format_args clippy lint for now (#1004)Clement Tsang
2023-01-20other: explicitly style dd text colours (#995)Clement Tsang
2023-01-20bug: fix axis labels not being styled (#994)Clement Tsang
Fixes graph axis labels not being styled.
2023-01-20refactor: change name of some stuff, add some comments (#992)Clement Tsang
* some quick refactoring first * add todo for bug report template
2023-01-20other: refresh cpu for sysinfo users if proc is used (#991)Clement Tsang
2023-01-19other: re-enable disk usage split, update help menu (#963)Clement Tsang
* Revert "other: revert disk usage change for now (#962)" This reverts commit d3661c23200a66c7dc01f4e534d8d7e97dc188d2. * some cleanup * update help menu * update screenshot * update changelog wording * Remove redundant newlines * Use type system to ensure help constants match in size
2023-01-18other: switch to windows-rs for process killing (#985)Clement Tsang
2023-01-15other: Dynamic battery widget (#975)Rareș Constantin
* Added dynamic battery widget For bottom to know that there are no batteries on the system, I added the battery::Manager to the options.rs file because here is the first moment bottom verifies battery configuration by reading the config file, which may or may not contain the battery field, but for a better UX, it doesn't matter what bottom finds in the config file now, if it doesn't retrieve battery data, it just ignores the battery widget all together. If needed, it can be adjusted so that if the config file contains the battery field, it will still show the widget. * CFG guarding for BATTERY module I guarded the options.rs in two places for battery module that can be missing in the feature list. Co-authored-by: RaresCon <RaresCon> Co-authored-by: NitrogenDev <44950964+NitrogenDev@users.noreply.github.com>
2023-01-15other: skip battery duration draw if unknown (#974)Clement Tsang
* other: skip battery duration draw if unknown * increase others * update changelog
2023-01-05other: revert disk usage change for now (#962)Clement Tsang
This is a temp change, this commit will be reverted after 0.7.1 comes out.
2023-01-05bug: further shrink battery time-to text (#960)Clement Tsang
2023-01-04bug: fix CPU 'all' label missing on small sizes (#953)Clement Tsang
Fixes the "All" label being missing on small windows.
2023-01-04bug: reduce battery text cutoff in small windows (#952)Clement Tsang
Fixes an issue where small windows would cause the battery to-X time to be cut off.