确定空闲原因 [英] Determining Idle Reason

查看:60
本文介绍了确定空闲原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个工具,我没有源代码。 要完成其任务,此工具需要2分钟,与其他工具类似的任务是2秒(字面意思)。 我使用xperf来确定这个工具为什么花了这么长时间,令我惊讶的是,
xperf告诉我没有太多的事情发生。  Xperf显示该工具在执行某些操作时会出现峰值,然后它会进入某种等待时间超过一分钟而不会产生任何活动。

I have a tool which I do not have the source code for.  To complete its task, this tool takes 2 minutes, when a similar task with other tools is 2 seconds (literally).  I used xperf to determine why this tool is taking so long, and to my surprise, xperf tells me that not much is going on.  Xperf shows the tool will spike when it does something, and then it enters some kind of wait period for over a minute where it does not produce any activity.

是否可以使用xperf找出程序没有做任何工作的原因? 也许它正在等待互斥,网络连接或产生的进程来完成? 我只是不知道。

Is it possible to use xperf to find out why a program is NOT doing any work?  Maybe it's waiting on a mutex, network connection, or a spawned process to complete?  I just don't know.

感谢您的任何建议。

推荐答案

可能正在使用"符号支持功能"。可以帮助您更详细地了解您的问题。

这可能会让您找到一个在预期时间内没有响应的相关行动名称。

may be using the "symbol support function" can help to get more information in detail around your issue.
It could be that this allow you to find one related action name which is not responding in your expected time.

一般情况下,我会使用ProcMon并构建一个类似的跟踪(* .pml)。

我会比较两个结果并试图找出一些理由......

In general I would use ProcMon and build a simular trace (*.pml).
And I would compare both results and try to find some reasons ...

祝你好运


这篇关于确定空闲原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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