Clement Tsang
77777ef588
refactor: clean up some more drawing/component code ( #1372 )
...
* rename battery info widget file
* add widget trait
* move basic table arrows over
* some renaming
* more renaming and shuffling
* cleanup
* fmt
2024-01-02 01:24:13 -05:00
Clement Tsang
c242b4aff3
refactor: move around some configuration code again ( #1371 )
2024-01-01 17:39:10 -05:00
Clement Tsang
228da99489
refactor: move around configuration-related files ( #1370 )
...
* rename general utils file
* refactor: move around some configuration files
* more shuffling around
* fix some ugly formatting
2024-01-01 17:20:40 -05:00
Clement Tsang
e71048e394
other: update lints ( #1369 )
...
I have `missing_docs` disabled for now as that'll take a long time to
get through... maybe in a separate PR.
2024-01-01 05:34:53 -05:00
Clement Tsang
ecb6faa089
refactor: restructure canvas file folder structure ( #1368 )
...
* 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
2024-01-01 05:19:52 -05:00
Clement Tsang
74792f0ddf
other: quick lint fixes for some warnings ( #1367 )
2023-12-30 23:28:44 -05:00
Clement Tsang
631f7208e4
deps: bump anyhow, clap, and thiserror ( #1365 )
2023-12-27 23:13:07 -05:00
Clement Tsang
22b40780ad
refactor: pull data collection out of nested folder structure ( #1364 )
...
* refactor: pull data collection out of nested folder structure
* fix sysinfo
* comment
2023-12-27 23:00:58 -05:00
Justin Martin
28d2950d92
deps: update ratatui version ( #1362 )
...
* 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-25 17:28:54 -05:00
Clement Tsang
c10779ecc0
refactor: fix macro formatting in disk data collection code ( #1363 )
2023-12-25 17:26:32 -05:00
Clement Tsang
a1168cac67
refactor: remove once_cell ( #1361 )
...
* refactor: remove once_cell
* some missing fixes
2023-12-23 04:35:42 -05:00
Clement Tsang
854f3aed95
refactor: some more cleanups around linux temp code ( #1360 )
2023-12-20 19:18:50 -05:00
Clement Tsang
a67da93c5f
other: if in a non-D0 state, short-circuit further logic ( #1355 )
...
* 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-20 01:36:08 -05:00
Clement Tsang
004c83728d
docs: update changelog with #1353 ( #1358 )
2023-12-19 22:52:29 -05:00
dependabot[bot]
c6a3393419
chore(deps): bump zerocopy from 0.7.26 to 0.7.31 ( #1357 )
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.26 to 0.7.31.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google/zerocopy/compare/v0.7.26...v0.7.31 )
---
updated-dependencies:
- dependency-name: zerocopy
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 03:02:35 -05:00
Clement Tsang
b6f92c2f3d
feature: support default selection of average CPU graph ( #1353 )
...
* feature: support default selection of average CPU graph
* test
2023-12-10 15:21:35 -05:00
Clement Tsang
300f66700e
ci: downgrade to checkout v3 when building releases in non-GH containers ( #1352 )
2023-12-06 17:36:39 -05:00
Clement Tsang
dab4b6c483
other: master -> main ( #1349 )
...
* other: master -> main
I'm so used to using `main` branch now that it's actually kinda annoying
to use `master` for just this repo... so might as well rename it now.
* overzealous change
* wording
* some wording
* allow auto-cancel for tests if not main
2023-12-06 00:16:26 -05:00
Clement Tsang
bc6a8d7feb
github: update wording around filesystem section in issue template ( #1348 )
2023-12-05 21:42:11 -05:00
Clement Tsang
fab86e833a
other: add back local time in debug logs ( #1346 )
...
* other: add back local time in debug logs
This still has a UTC fallback.
* cleanup and some warnings
2023-12-02 04:53:31 -05:00
Clement Tsang
074b205a82
other: change group -> group_processes for consistency between config and command-line args ( #1344 )
...
* other: change group -> group_processes to match config file name
* update docs
* update changelog
2023-12-01 02:46:22 -05:00
ClementTsang
66b58e49d2
github: update some wording for feature and bug issue templates
2023-11-30 02:04:27 -05:00
ClementTsang
70d6e8aee0
github: fix typo in issue template
2023-11-30 01:51:49 -05:00
Clement Tsang
5787734476
github: update more wording of the bug issue template ( #1343 )
2023-11-30 01:44:53 -05:00
Clement Tsang
61704d9466
github: update filesystem issue template section ( #1342 )
2023-11-30 01:01:32 -05:00
Clement Tsang
2db881e3cf
deps: bump dependencies as of 2023-11-27 ( #1338 )
2023-11-27 23:06:51 -05:00
Clement Tsang
cf447e6a4e
deps: update sysinfo to 0.29.11 ( #1337 )
2023-11-27 22:37:50 -05:00
Clement Tsang
46b7881fb0
other: preallocate space for ellipsis ( #1336 )
2023-11-27 04:55:21 -05:00
Clement Tsang
590f03bd69
other: update generated config file ( #1335 )
2023-11-27 03:39:39 -05:00
Clement Tsang
eab8736dfd
refactor: iteratively detect ASCII and build string when truncating ( #1334 )
...
* refactor: iteratively detect ASCII and build string when truncating
* more tests
* test going by usize
* Revert "test going by usize"
This reverts commit 4fe71260e7
.
2023-11-27 03:30:43 -05:00
Clement Tsang
94e4573ebc
refactor: add fast branch if the string is short enough to not be truncated ( #1333 )
...
* refactor: add fast branch if the entire string is definitely not truncated
* update comments
2023-11-24 03:13:06 -05:00
Clement Tsang
a93521d2b1
refactor: add fast branch for ascii-only string truncate ( #1330 )
...
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-23 23:45:03 -05:00
Clement Tsang
3a50d7622e
ci: update rust-cache to 2.7.0 ( #1332 )
2023-11-23 23:32:09 -05:00
Clement Tsang
bbeb43ef77
ci: update cargo-llvm-cov to 0.5.37 ( #1331 )
2023-11-23 23:29:42 -05:00
Clement Tsang
9d0bfbbf93
docs: update changelog ordering and some wording ( #1328 )
2023-11-21 00:25:25 -05:00
Clement Tsang
36bf5afeb1
change changelog heading levels ( #1327 )
2023-11-20 23:15:14 -05:00
Clement Tsang
ab9331140a
refactor: simplify temperature conversion function usage ( #1326 )
...
* refactor: simplify temperature conversion function usage
Just make it a function on the temperature type enum.
* fix sysinfo variant
* simple test
2023-11-20 03:08:24 -05:00
Clement Tsang
10a37c263a
change: small gpu proc changes ( #1325 )
...
* other: use consistent casing with Mem/Mem% in processes for GPU cols
* other: remove mem check for GPU enable check
2023-11-20 02:30:57 -05:00
Justin Martin
e4a6e751ec
feature: Add gpu proc info ( #1276 )
...
* 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-19 23:54:15 -05:00
Clement Tsang
5df66006d8
docs: fix typo in process column config ( #1323 )
...
Lowercase a word.
2023-11-19 06:49:37 -05:00
Clement Tsang
5a17212f89
other: add additional clamping functions on numeric types ( #1324 )
...
* other: add additional clamping functions on numeric types
* add tests and replace one usage
2023-11-19 03:15:19 -05:00
Clement Tsang
7c14aa2666
ci: bump actions/checkout to v4.1.1 ( #1322 )
2023-11-18 19:15:28 -05:00
Clement Tsang
f021bc34d7
docs: add Android as unsupported but builds in README ( #1321 )
2023-11-18 06:27:33 -05:00
Clement Tsang
a5bbe5e333
deps: bump toml_edit to 0.21.0 ( #1320 )
...
* deps: bump toml_edit to 0.21.0
* fix some formatting
2023-11-16 17:24:45 -05:00
Clement Tsang
036366274e
docs: bump mike to v2.0.0 ( #1318 )
...
* bump mike
* bump some docs
* update some settings and serve script to use mike
2023-11-16 03:17:21 -05:00
Clement Tsang
04713bf81d
docs: bump mkdocs-related dependencies to latest ( #1317 )
...
* docs: bump mkdocs-related dependencies to latest
bumps mkdocs-material to 9.4.8, mkdocs to 1.5.3, mkdocs-material-extensions to 1.3
* fix some link warnings
2023-11-16 02:45:04 -05:00
Clement Tsang
4d2df4c4e9
refactor: clean up some query code and some ascii-only string comparisons ( #1316 )
...
* refactor: update some stuff in the query code
* do some eq_ignore_ascii work
* tests
* some docs, and rename files
2023-11-15 06:23:04 -05:00
Clement Tsang
8b9328e29e
refactor: comment on convoluted Filesystem::from_str
code ( #1315 )
...
* refactor: use a less convoluted match for filesystem type conversion
* revert, just use comment
* just use if statements instead
* test
* inline
2023-11-15 04:13:19 -05:00
Yuri Astrakhan
5eb4fbde5d
chore: fix certain uninlined string format uses ( #1310 )
...
* 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-15 03:47:22 -05:00
Yuri Astrakhan
a6200640b9
chore: run spell and grammar checkers
...
* Chore: Run an spell cheker, and gramar cheker
* small revert
---------
Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2023-11-15 03:03:48 -05:00