评估 Windows 中 .exe 的性能和执行时间
这个问题测量执行时间... 允许程序员找到好的工具来评估 Windows 上使用命令行的可执行文件的执行时间。我的问题有点不同。请不要将其视为重复。
我在 Windows 上有一个通用的 .exe
可执行文件。我需要在运行时评估该可执行文件的性能(以及执行时间)。
但请考虑到我想使用能够获得非常详细的性能/时间报告的软件。与 Visual Studio 在分析工具中的性能报告所做的非常相似。您建议我使用 Visual Studio,但不幸的是,我需要以非常通用的方式评估 Windows 下所有可能的可执行文件的时间(不仅仅是 .NET 应用程序)。
然而,Visual Studio 允许评估可执行文件的性能,但是,我发现它无法分析以不包含在 .NET 域中的语言编写的可执行文件(特别是我需要评估 Visual-Prolog、C、C+ 的时间和性能) +0x 程序)
评估不是在编译时、测试或模拟时进行的。它必须在执行时完成,并且每个可能的可执行文件都应该提供给这个时间评估器。
所以,像这样的程序
StartTimer.exe /param value1
CallMyExeFile.exe
StopTimer.exe
......不是我想要的。这只是一个简单的计数器,我需要一个更详细的工具,它可以向我显示应用程序的执行时间和性能的详细报告。
如果有免费工具,我们很欢迎,但是,请随时向我建议解决我的这个问题的所有可能的解决方案。
This question Measure execution time... allows programmers to find good tools to evaluate execution times of executable files using command line on Windows. My question is a bit different. Please do not consider it a duplicate.
I have a general .exe
executable file on Windows. I need to evaluate performance (so execution times too) of this executable while running.
But please consider that I would like to use a software able to get a very detailed performance/time report. Something very similar to what Visual Studio does with its Performance Reports in Analysis Tools. You would suggest me to use Visual Studio, but, unfortunately, I need to evaluate times for all possible executables under Windows in a very general way (not just for .NET applications).
However, Visual Studio allows to evaluate performance of an executable, but, I experienced that it cannot analyze executable written in languages not included in the .NET domain (in particular I need to evaluate times and performance for Visual-Prolog, C, C++0x programs)
The evaluation is not made at compile time or at test or simulation time. It must be done at execution time and every possible executable file should be provided to this time-evaluator.
So, a program like this
StartTimer.exe /param value1
CallMyExeFile.exe
StopTimer.exe
...is not what I am looking for. This is just a simple counter, I need a more detailed tool which shows me a detailed report of execution times and performance of my application.
If there's a free tool, it is welcome, however, please, feel free to suggest me every possible solution to this problem of mine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这远不是一个完整的答案,但您可以先查看此处。 Windows 包含广泛的监视工具,可用于对系统性能执行细粒度分析。由于这些工具正在测量 Windows 内部工件(上下文切换时间、线程时间等),因此它们可以与任何任意可执行文件一起使用。
使用 xperf 工具集的一个主要挑战是您会获得大量数据(每次进行性能分析时,Windows 中内置的用于性能分析的仪器数量都让我感到惊讶(事实上,仪器工作基本上没有开销))。找出哪些信息有用、哪些信息是噪音可能需要花费大量时间。
很抱歉我无法给出更具体的答案,但你的问题相当模糊。
It's far from a complete answer, but you might start by looking here. Windows contains extensive monitoring tools that can be used to perform fine grained analysis of system performance. Since the tools are measuring Windows internal artifacts (context switch times, thread times, etc) they can work with any arbitrary executable.
One major challenge of using the xperf toolset is that you get a lot of data (every time I do perf analysis, it amazes me the amount of instrumentation for performance analysis built into Windows (and the fact that that instrumentation works with essentially no overhead)). It can take a significant amount of time to figure out what information is useful and what is noise.
I'm sorry I can't give a more specific answer but your question is fairly vague.