vladimirmarkelov / pwatch Goto Github PK
View Code? Open in Web Editor NEWProcess watcher(pwatch)
License: Apache License 2.0
Process watcher(pwatch)
License: Apache License 2.0
As F9
does
Add a hotkey to enter new filter (as it is done in top
) instead of restarting the application
A hotkey to save the current screen to a file in local folder or $DOCUMENTS/pwatch/...
Sometimes CPU or MEM graph is not interesting and it would be good to be able to hide any of them to maximize the other graph area
At this moment Space
"marks" only memory counter.
When launched pwatch from cmd.exe console I had this error:
It is Windows 7, barely updated, and with default settings.
C:\stuff\bin>pwatch.exe QueryTtest
thread 'main' panicked at 'Initial console color not set', C:\Users\vvm\.cargo\r
egistry\src\github.com-1ecc6299db9ec823\crossterm-0.17.4\src\style\sys\windows.r
s:97:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
C:\stuff\bin>set RUST_BACKTRACE=1
C:\stuff\bin>pwatch.exe QueryTtest
thread 'main' panicked at 'Initial console color not set', C:\Users\vvm\.cargo\r
egistry\src\github.com-1ecc6299db9ec823\crossterm-0.17.4\src\style\sys\windows.r
s:97:5
stack backtrace:
0: backtrace::backtrace::dbghelp::trace
at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc629
9db9ec823\backtrace-0.3.44\src\backtrace/dbghelp.rs:88
1: backtrace::backtrace::trace_unsynchronized
at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc629
9db9ec823\backtrace-0.3.44\src\backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src\libstd\sys_common/backtrace.rs:78
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Displa
y>::fmt
at src\libstd\sys_common/backtrace.rs:59
4: core::fmt::write
at src\libcore\fmt/mod.rs:1063
5: std::io::Write::write_fmt
at src\libstd\io/mod.rs:1426
6: std::sys_common::backtrace::_print
at src\libstd\sys_common/backtrace.rs:62
7: std::sys_common::backtrace::print
at src\libstd\sys_common/backtrace.rs:49
8: std::panicking::default_hook::{{closure}}
at src\libstd/panicking.rs:204
9: std::panicking::default_hook
at src\libstd/panicking.rs:224
10: std::panicking::rust_panic_with_hook
at src\libstd/panicking.rs:470
11: rust_begin_unwind
at src\libstd/panicking.rs:378
12: core::panicking::panic_fmt
at src\libcore/panicking.rs:85
13: core::option::expect_failed
at src\libcore/option.rs:1203
14: crossterm::style::sys::windows::original_console_color
15: crossterm::style::sys::windows::reset
16: <crossterm::style::ResetColor as crossterm::command::Command>::execute_win
api
17: pwatch::main
18: std::rt::lang_start::{{closure}}
19: std::rt::lang_start_internal::{{closure}}
at src\libstd/rt.rs:52
20: std::panicking::try::do_call
at src\libstd/panicking.rs:303
21: __rust_maybe_catch_panic
at src\libpanic_unwind/lib.rs:86
22: std::panicking::try
at src\libstd/panicking.rs:281
23: std::panic::catch_unwind
at src\libstd/panic.rs:394
24: std::rt::lang_start_internal
at src\libstd/rt.rs:51
25: main
26: __tmainCRTStartup
at C:/crossdev/src/mingw-w64-v4-git/mingw-w64-crt/crt/crtexe.c:332
27: mainCRTStartup
at C:/crossdev/src/mingw-w64-v4-git/mingw-w64-crt/crt/crtexe.c:212
28: unit_addrs_search
29: unit_addrs_search
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose bac
ktrace.
C:\stuff\bin>
As F12
does
Hi!
Just wanted to try pwatch but install fails on my box (rust-1.63.0 (stable), Windows 10)
$ cargo install pwatch
Updating crates.io index
Downloaded pwatch v0.4.0
Downloaded 1 crate (154.1 KB) in 2.26s
Installing pwatch v0.4.0
Downloaded sysinfo v0.26.1
Downloaded 1 crate (128.8 KB) in 1.51s
Compiling autocfg v1.1.0
...
...
...
Compiling pwatch v0.4.0
error[E0432]: unresolved import sysinfo::ProcessorExt
--> C:\Users\olivier.cargo\registry\src\github.com-1ecc6299db9ec823\pwatch-0.4.0\src\layout.rs:10:27
|
10 | use sysinfo::{ProcessExt, ProcessorExt, System, SystemExt};
| ^^^^^^^^^^^^
| |
| no ProcessorExt
in the root
| help: a similar name exists in the module: ProcessExt
error[E0605]: non-primitive cast: usize
as Pid
--> C:\Users\olivier.cargo\registry\src\github.com-1ecc6299db9ec823\pwatch-0.4.0\src\config.rs:286:36
|
286 | conf.pid_list.push(i as Pid);
| ^^^^^^^^ help: consider using the From
trait instead: Pid::from(i)
|
= note: an as
expression can only be used to convert between primitive types or to coerce to a specific trait object
error[E0599]: no method named get_processes
found for struct sysinfo::System
in the current scope
--> C:\Users\olivier.cargo\registry\src\github.com-1ecc6299db9ec823\pwatch-0.4.0\src\layout.rs:64:33
|
64 | let procs = self.system.get_processes();
| ^^^^^^^^^^^^^ method not found in sysinfo::System
error[E0599]: no method named get_processors
found for struct sysinfo::System
in the current scope
--> C:\Users\olivier.cargo\registry\src\github.com-1ecc6299db9ec823\pwatch-0.4.0\src\layout.rs:119:31
|
119 | for pr in self.system.get_processors().iter() {
| ^^^^^^^^^^^^^^ method not found in sysinfo::System
error[E0599]: no method named get_used_memory
found for struct sysinfo::System
in the current scope
--> C:\Users\olivier.cargo\registry\src\github.com-1ecc6299db9ec823\pwatch-0.4.0\src\layout.rs:125:38
|
125 | self.mem_usage = self.system.get_used_memory() * 100 / self.system.get_total_memory();
| ^^^^^^^^^^^^^^^ method not found in sysinfo::System
error[E0599]: no method named get_total_memory
found for struct sysinfo::System
in the current scope
--> C:\Users\olivier.cargo\registry\src\github.com-1ecc6299db9ec823\pwatch-0.4.0\src\layout.rs:125:76
|
125 | self.mem_usage = self.system.get_used_memory() * 100 / self.system.get_total_memory();
| ^^^^^^^^^^^^^^^^ method not found in sysinfo::System
Most of the error messages are explicit.
crate sysinfo has renamed some symbols e.g.
0.24.0 : Rename Processor
into Cpu
and ProcessorExt
into CpuExt
.
(https://github.com/GuillaumeGomez/sysinfo/search?q=processorext)
but pwatch Cargo.toml only has
[dependencies]
sysinfo=">=0.14"
Should be easy to fix. Hope this helps
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.