Cygwin显示进程的cpu使用情况? [英] Cygwin to display cpu usage of a process?

查看:209
本文介绍了Cygwin显示进程的cpu使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望这个问题可以解决,因为我一直在网上搜索没有可用的答案。 Cygwin有一个命令来显示Windows进程的cpu%?我知道命令 top 可以显示这个信息,但它只显示Cygwin进程而不是Windows。还有另一个命令, ps ,但这不显示cpu%。也许有一个命令有顶部 ps 的最好的。

是 Windows的本地可执行文件。他们只是使用Cygwin的DLL将Linux系统调用映射到Windows系统调用。



只需使用例如来自SysInternals的PsTools (现在是Microsoft的一部分)。它包含 pslist ,它能够输出正在运行的Windows的进程信息。


Hopefully, this question can be resolved, as I've been searching all over the web for answers to no avail. Does Cygwin have a command to display cpu % of a Windows process? I know that the command top can display this information, but it only displays Cygwin processes and not Windows. There's another command, ps, but this doesn't display cpu %. Perhaps there's a command that has the best of both top and ps.

解决方案

Well, you don't need "native" Cygwin application to do that, because Cygwin can execute also native Windows' executables. In fact, Cygwin's "native" executables are Windows' native executables. They just use Cygwin's DLLs to map Linux system calls to Windows' ones.

Just use for example package PsTools from SysInternals (now part of Microsoft). It contains pslist which is able to output running Windows' processes information.

这篇关于Cygwin显示进程的cpu使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆