summaryrefslogtreecommitdiffstats
path: root/src/app
AgeCommit message (Collapse)Author
2024-05-07refactor: extract unicode-ellipsis into its own crate (#1465)Clement Tsang
* refactor: extract unicode-ellipsis into its own crate * 0.1.4
2024-05-07refactor: some string-related code cleanup/refactor (#1463)Clement Tsang
* other: organize some utility function files * deps: remove kstring * refactor: some naming changes * refactor: some more small refactoring/naming changes * simplify to_cell to return a Cow * enable lints
2024-01-15refactor: simplify some config -> constraints code (#1383)Clement Tsang
* refactor: simplify some config -> constraints code * iteratively progress... * update bcr; this might need testing since I removed some old proc code * widget side * fix battery * fix widget tests with bandaid for now The issue was that the calculations assume a certain ratio for CPU legends. * add some tests * bump up * fix proc drawing issues So with the proc widget in certain places, there would be a panic during constraint determination. Looks like back when I wrote this I made some gross assumptions about certain things. In particular, the problem here was that the search added an additional "one" height, so that needs to be accounted for after we removed the "doubling" code. * tests * fix tests * reorganize tests * clippy * fix cross tests not working * fix builds for android
2024-01-01refactor: move around configuration-related files (#1370)Clement Tsang
* rename general utils file * refactor: move around some configuration files * more shuffling around * fix some ugly formatting
2024-01-01other: update lints (#1369)Clement Tsang
I have `missing_docs` disabled for now as that'll take a long time to get through... maybe in a separate PR.
2024-01-01refactor: restructure canvas file folder structure (#1368)Clement Tsang
* refactor: group together some canvas files * rename file * more shuffling around * fmt * more shuffling Going to flatten widgets in another PR. * some docs * naming * fmt
2023-12-27refactor: pull data collection out of nested folder structure (#1364)Clement Tsang
* refactor: pull data collection out of nested folder structure * fix sysinfo * comment
2023-12-25refactor: fix macro formatting in disk data collection code (#1363)Clement Tsang
2023-12-23refactor: remove once_cell (#1361)Clement Tsang
* refactor: remove once_cell * some missing fixes
2023-12-20refactor: some more cleanups around linux temp code (#1360)Clement Tsang
2023-12-20other: if in a non-D0 state, short-circuit further logic (#1355)Clement Tsang
* other: if in a non-D0 state, short-circuit further logic * cleanup * add back an empty name and value * fix for macos/windows * some testing things
2023-11-20refactor: simplify temperature conversion function usage (#1326)Clement Tsang
* refactor: simplify temperature conversion function usage Just make it a function on the temperature type enum. * fix sysinfo variant * simple test
2023-11-19feature: Add gpu proc info (#1276)Justin Martin
* Add gpu util, power and procs. Consolidated gpu calls into `data_harvester`. Changed config flag from `enable_gpu_memory` to `enable_gpu`. Added GPU utilization to the cpu widget. Added GPU process memory usage and utilization percentage to the proc widget. Added key binds for gpu process toggling. Added GPU power usage to the battery widget. Added bounds check to battery widget header. Show battery widget header when `gpu_enable`. Added feature flag `legacy-functions` to `nvml-wrapper`. updated config file(s). updated help text. updated docs. * Code Review: Remove GPU util from cpu widget Remove GPU power from battery widget Use reference for gpu widgets_to_harvest Extract match arm to function for feature gate * Code Review: add gmem% toggle * Do not poll gpu temp when filtered * Code Review Two Changes: adjust doc wordings remove extra references remove extra widget harvest checks init proc gpu values use convert_temp_unit for gpu temp
2023-11-15refactor: clean up some query code and some ascii-only string comparisons ↵Clement Tsang
(#1316) * refactor: update some stuff in the query code * do some eq_ignore_ascii work * tests * some docs, and rename files
2023-11-15refactor: comment on convoluted `Filesystem::from_str` code (#1315)Clement Tsang
* refactor: use a less convoluted match for filesystem type conversion * revert, just use comment * just use if statements instead * test * inline
2023-11-15chore: fix certain uninlined string format uses (#1310)Yuri Astrakhan
* Fixed uninlined args First ran this, and fixed a few more similar issues by hand ``` cargo clippy --workspace --fix --benches --tests --bins -- -A clippy::all -W clippy::uninlined_format_args ``` Note that in a few cases, format args were passed by ref - which is actually a tiny perf hit - compiler would not be able to optimize them. * revert change here since it contains a non-inlineable variable I'm not a fan of using it partially here * revert given the other formats above/below I would prefer keeping it like this --------- Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2023-11-14bug: fat32 mounts don't show up in macOS (#1314)Devin-Yeung
2023-10-22chore: Minor cleanup - remove un-needed ident qualifiers (#1307)Yuri Astrakhan
Keep code a bit tidier and consistent (i.e. if an identifier already has a `use` entry above, why in some cases still prove a full path to it?)
2023-08-24other: appease clippy after Rust 1.72.0 (#1281)Clement Tsang
* deps: use clap 4.4.0 to remove is-terminal * fmt * appease clippy * fmt again * Revert "deps: use clap 4.4.0 to remove is-terminal" This reverts commit 78aa6ec8481d38357adc09e262aa5df87796b6c7.
2023-08-22deps: bump windows to 0.51.1 (#1279)Clement Tsang
* deps: bump windows to 0.51.1 * some changes to fit new API
2023-07-27bug: display arc max size in arc usage instead of system memory (#1264)Zeb Piasecki
2023-07-11refactor: flatten IoCounter return value (#1253)Clement Tsang
* refactor: rewrite io stats collection function result * refactor: flatten IoCounters vector results
2023-07-09add zfs io counters for linux and freebsd (#1248)Justin Martin
* add zfs io counters for linux and freebsd * ci * freebsd clippy * code review: remove dead code for zfs feature gate of freebsd iocounters and squash if statement in zfs_io_counters
2023-07-05bug: missing windows syscall to close the handle on drop when killing (#1245)Clement Tsang
* bug: missing windows syscall to close the handle on drop when killing * changelog * fix
2023-07-01other: remove some unnecessary vec allocations (#1234)Clement Tsang
* other: remove unnecessary vector allocations in farmer * other: remove unnecessary vector allocations when drawing tui Rows
2023-06-29deps: bump deps as of 2023-06-29 (#1233)Clement Tsang
* deps: bump deps as of 2023-06-29, clean up Cargo.toml a bit * fix deprecated function call
2023-06-18other: use f32 for process percentage values (#1212)Clement Tsang
* other: use f32 for process percentage values This cuts down memory by a tiny bit, and we don't need a full f64 for percentage values. * fix for macos and windows
2023-06-13other: clean up some cfg usage (#1205)Clement Tsang
* other: convert some cfg if * fix
2023-06-12other: post-0.9.2 cleanup (#1203)Clement Tsang
* other: some cleanup * other: add conditional logging macros * more cleanup * use compile-time feature for some text in clap
2023-06-11feature: on Linux, check coretemp and don't fail fast with name generation ↵Clement Tsang
when gathering temps (#1188) * feature: also check coretemp on Linux when gathering temps * update changelog * add comment * add logic to check thermal zone if there are no hwmon entries * cleanup * handle duplicates between hwmon and thermal zone * Revert "handle duplicates between hwmon and thermal zone" This reverts commit 402606cc62f27ba196ef2ade6a669ae84aedf0e0. * cleanup * back to running thermal zone if no hwmon * prevent failure cases * temp logging * name refactoring * port dupe name logic to hwmon * Cleanup, add fallback to sensor name * more tests * Fix log * update changelog * cleanup and more tests
2023-06-11ci: add a build check for aarch64-linux-android (#1124)Clement Tsang
* ci: add a build check for aarch64-linux-android * appease clippy * use 1.67.0 for Android due to NDK issue * remove sparse since it is default now for 1.70 and causes issues with older versions anyway
2023-06-11other: remaining changes needed to get android to build (#1199)Clement Tsang
* other: remaining changes needed to get android to build * update changelog * simplify disk os-specific code
2023-06-11other: have dummy fallback for disk I/O for unsupported OSes (#1198)Clement Tsang
2023-06-10refactor: redo how we do get processes between different OSes (#1197)Clement Tsang
* refactor: redo how we do some processes between different OSes * cleanup * more cleanup * windows * freebsd * clean up linux more, fix broken FreeBSD import * some more cleanup to remove some big imports
2023-06-08bug: ntfs3 mounts don't show up (#1191)database64128
Partitions mounted using the ntfs3 driver in linux (mainlined since 5.15) won't show up because the name didn't match.
2023-06-08feature: use better names for duplicate temp sensors found by ↵Clement Tsang
`/sys/class/thermal` (#1187) * docs: update changelog * feature: add a counter to duplicate names if using /sys/class/thermal/ * update changelog
2023-06-07bug: when getting Linux temps, don't bail ASAP if they fail (#1186)Clement Tsang
* bug: when getting Linux temps, don't bail ASAP if they fail This meant that if hwmon failed, it would never try and get temperatures from thermal or GPU. The same is true for thermal failing leading to GPU never running. * update docs
2023-06-03other: fix links and broken references in doc comments (#1182)Clement Tsang
2023-06-02refactor: remove typed-builder (#1181)Clement Tsang
2023-05-31refactor: clean up some Linux proc collection code (#1179)Clement Tsang
2023-05-28refactor: remove typed builder from App struct (#1176)Clement Tsang
Another one on the chopping block. This also moves out the app widget logic to a separate struct.
2023-05-26other: clean up some fixmes (#1171)Clement Tsang
2023-05-21refactor: remove procfs (#1163)Clement Tsang
* refactor: remove procfs, use personal impls/rustix directly * buffer sharing * inline * some cleanup
2023-05-20refactor: remove TypedBuilder for col (#1162)Clement Tsang
* refactor: remove TypedBuilder for col * clean up basic
2023-05-18refactor: remove TypedBuilder for widget (#1159)Clement Tsang
* refactor: remove TypedBuilder for widget * group together cpu * clean up proc too
2023-05-17refactor: remove TypedBuilder for col row (#1158)Clement Tsang
2023-05-07deps: bump clap to 4.2.7 and libc to 0.2.143 (#1136)Clement Tsang
2023-05-06other: use sysinfo for temps for android and ios (#1130)Clement Tsang
2023-05-02feature: show running time of processes (#801)Yuxuan Shui
* feature: show running time of processes * fix clippy * add time searching * update changelog * use safer duration for linux in case of 0 * some cleanup * quick hack to deal with some Windows processes returning unix epoch time as start time --------- Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2023-04-29feature: add customizable process columns (#1115)Clement Tsang
* feature: add customizable process columns * Add some tests and actual logic * more tests * update changelog * update config field * even more tests * update documentation * more testing