summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
7 daysrefactor: extract unicode-ellipsis into its own crate (#1465)Clement Tsang
* refactor: extract unicode-ellipsis into its own crate * 0.1.4
8 daysrefactor: 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
10 daysbug: fix battery table when hiding gaps (#1458)Raphael Erik Hviding
This changes the behavior of the battery widget when paired with the skip_table_gap.
12 daysother: comment out some dead code (#1456)Clement Tsang
2024-04-28deps: bump deps as of 2024-04-28 (#1450)Clement Tsang
* deps: bump deps as of 2024-04-28 * fix tests * extra test
2024-04-10other: update a bunch of argument descriptions and some arg/config names (#1441)Clement Tsang
* other: update a bunch of argument descriptions and some arg/config names * update docs * changelog
2024-04-02feature: Add option to set a position of legend (#1430)Lee Wonjoon
* Add option to set a position of legend * some small changes --------- Co-authored-by: ClementTsang <34804052+ClementTsang@users.noreply.github.com>
2024-03-27change: use sysinfo's swap value for Windows (#1436)Clement Tsang
* some consts * change: use sysinfo's swap calculation for windows I'll add an additional field for committed in a separate PR which shows the previous value.
2024-02-15other: add process uptime as a default column (#1411)Clement Tsang
* other: add process uptime as a default column * update docs
2024-02-15bug: fix uptime calculation for Linux (#1410)Clement Tsang
* bug: fix uptime for linux Use another calculation to determine the uptime of a process on Linux. * appease clippy * changelog * edit add
2024-02-03deps: bump ratatui to 0.26 (#1406)Clement Tsang
* deps: bump ratatui to 0.26 * adjust process width * a few nonzero optimizations * add a todo * update comments to be less confusing about time chart
2024-01-21other: flatten process config struct and clean up help text (#1395)Clement Tsang
* refactor: flatten process config field * other: clean up some doc formatting using indoc and breaklines * fix broken test * remove default as that breaks things for now * add test * more tests
2024-01-18refactor: move some files around in prep for a future options refactor (#1393)Clement Tsang
* some formatting * refactor: move some files around in prep for a bigger config/options refactor
2024-01-16refactor: convert layout creation tests back to being unit tests (#1392)Clement Tsang
2024-01-15deps: bump sysinfo to =0.30.5 (#1390)Clement Tsang
* deps: bump sysinfo to =0.30.5 * fix an import * fix stuff for linux * fix temps * some fmt * disks * oops * fix some bugs
2024-01-15deps: bump non-root dependencies as of 2024-01-15 (#1387)Clement Tsang
* deps: bump non-root dependencies as of 2024-01-15 * also test 1.70 unofficial msrv
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-11docs: use consistent wording around command-line options (#1378)Clement Tsang
* docs: use consistent wording around command-line options * fix missing code blocks
2024-01-11refactor: clean up arg code more (#1377)Clement Tsang
* fix sort function * Try macros * Revert "Try macros" This reverts commit 93c7306f8ae8b906e0a66d1a4d758aad51efe3eb. * use next_help_heading instead * test * Revert "test" This reverts commit 017a1702b35dd7fd87c449e27a3bdb65bc858f72. * Reapply "test" This reverts commit 23c09d3828594d880ecf5e753e1fcdf5fd719e42. * use foldl instead :) * a word * different conditionals * update docs, change ordering * more formatting stuff
2024-01-10refactor: rearrange/resort args (#1376)Clement Tsang
* clean up Cargo.toml * some small cleanup * refactor: group together similar args in the help generation and code This groups together related arguments in both the help text and the code itself. * update changelog * clippy * builder pattern instead
2024-01-08refactor: clean up help drawing code (#1374)Clement Tsang
* refactor: clean up the help drawing * a bit cleaner * add test * some fmt
2024-01-04feature: Add support for bcachefs (#1373)Thomas Mühlbacher
Make sure that bcachefs mounts are also displayed in the disks widget. bcachefs is a file system that will be included in the upcoming Linux v6.7 kernel. Briefly tested this and it works on my system.
2024-01-02refactor: clean up some more drawing/component code (#1372)Clement Tsang
* rename battery info widget file * add widget trait * move basic table arrows over * some renaming * more renaming and shuffling * cleanup * fmt
2024-01-01refactor: move around some configuration code again (#1371)Clement Tsang
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-30other: quick lint fixes for some warnings (#1367)Clement Tsang
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-25deps: update ratatui version (#1362)Justin Martin
* cargo update ratatui * replace convert_arc_labels with convert_mem_labels * remove redundant generic --------- Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
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-12-10feature: support default selection of average CPU graph (#1353)Clement Tsang
* feature: support default selection of average CPU graph * test
2023-12-02other: add back local time in debug logs (#1346)Clement Tsang
* other: add back local time in debug logs This still has a UTC fallback. * cleanup and some warnings
2023-12-01other: change group -> group_processes for consistency between config and ↵Clement Tsang
command-line args (#1344) * other: change group -> group_processes to match config file name * update docs * update changelog
2023-11-27other: preallocate space for ellipsis (#1336)Clement Tsang
2023-11-27other: update generated config file (#1335)Clement Tsang
2023-11-27refactor: iteratively detect ASCII and build string when truncating (#1334)Clement Tsang
* refactor: iteratively detect ASCII and build string when truncating * more tests * test going by usize * Revert "test going by usize" This reverts commit 4fe71260e70696a0bb5907c97a2ca049fc23214c.
2023-11-24refactor: add fast branch if the string is short enough to not be truncated ↵Clement Tsang
(#1333) * refactor: add fast branch if the entire string is definitely not truncated * update comments
2023-11-23refactor: add fast branch for ascii-only string truncate (#1330)Clement Tsang
This is just a first attempt to speed up what looked like a hot spot in samply's profiling results. Benchmark code and results here: https://gist.github.com/ClementTsang/e242f12f7e1d1902ed414dcc18c3b321
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-20change: small gpu proc changes (#1325)Clement Tsang
* other: use consistent casing with Mem/Mem% in processes for GPU cols * other: remove mem check for GPU enable check
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-19other: add additional clamping functions on numeric types (#1324)Clement Tsang
* other: add additional clamping functions on numeric types * add tests and replace one usage
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