Windows 任务管理器保存或绘制进程图表
一段时间以来,我一直在通过 Windows 任务管理器监视特定进程的一些内存使用情况,目前我刚刚将一堆值记入记事本文件中。这看起来效率相当低,而且也不那么容易一目了然地收集信息。另外,它可能不一定准确,因为流程变化的程度我肯定错过了一些信息。我想知道是否有人知道可以用来将进程信息保存到文件中的工具,甚至可以绘制特定进程内存使用情况的图表。我认为不值得我编写自己的脚本,因为我不知道如何以编程方式访问任务管理器,而且我觉得已经有一些东西像我正在寻找的那样。如果有人知道任何事情那就太好了。
I've been monitoring some memory usage by specific processes through Windows Task Manager for awhile and at the moment I've just been taking down a bunch of values into a notepad file. This seems pretty inefficient and also not nearly as easy to glean information from at a glance. Plus, it may not necessarily be accurate as with how much the processes change I definitely have missed some information. I was wondering if anyone knew of a tool that could be used to save process information to a file, or maybe even graph specific process memory usage. I don't think it would be worth me writing my own script since I have no idea how to access the task manager programmatically, and I feel like something already must be out there like what I'm looking for. If anyone knows of anything that would be nice.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用perfmon。它可以监视进程的内存使用指标,并将结果导出到文件。
Use perfmon. It can monitor memory usage metrics for a process and can export the results to a file.
要获取所有进程的列表,其中包含一些有趣的数字,例如工作集、私有字节、CPU 使用率等,您可以在命令提示符下简单地输入:
wmic process
您可以定期执行此操作,然后制作一些图表它。文本文件相当简单,采用固定宽度的列格式,易于解析。
你的,
阿洛伊斯·克劳斯
To get a list of all processes with some interesting numbers like working set, private bytes, CPU usage, ... you can enter on a command prompt simply:
wmic process
You can do this on a regular basis and then make some graph out of it. The text file is rather simple a fixed width column format which is easy to parse.
Yours,
Alois Kraus