Disk IO profiler for existing applications

夙愿已清 提交于 2019-12-12 04:35:42

问题


I need to know what file a specific program read. (this specific program is based on .net).

Is there a recommendation for a good profiler?


回答1:


Take a look at Process Monitor, it can tell you exactly when and what files are opened and closed by any Windows process, read/write operations, etc.




回答2:


Can you run the program under an IDE such as Visual Studio?

Are you asking what is the name of the file that the program spends most of its time reading?

If so, then the simplest way to find out is, while the program is running, halt it by pressing the "pause" button, and then examine what the program is doing.

If the pause occurs during the I/O, you will see that the call stack has "main" at one end, and a system I/O routine at the other end. In between, you will see the line where the I/O is called. Then just find the line where the file is opened, and you will be able to see the file name.

You may want to do this several times to make sure you catch the program in the process of that I/O.



来源:https://stackoverflow.com/questions/2878999/disk-io-profiler-for-existing-applications

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!