分析代码中每个用户定义函数所花费的时间。 [英] Profiling the time taken for each user defined function in the code.

查看:112
本文介绍了分析代码中每个用户定义函数所花费的时间。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我想找到每个函数完成执行所花费的时间。我知道在VS 2015诊断工具中我们可以找到每个函数的已用时间。 


在我的情况下,有很多函数被调用,我不认为找到每个函数的通过每条线走的时间是正确的。


此外,我只需要找到用户定义的功能所花费的时间。 


是我可以运行任何工具并为每个功能获得时间。


我正在使用VS 2015社区版。这种工具是否可用于任何其他版本?


提前致谢。






解决方案

< blockquote>

您好Viknesh Ramm,


有些分析工具会为您提供更好的选择:


https://stackoverflow.com/questions/947658/tools-to-profile-function -execution-of-a-net-program


或者PerfTips将是一种解决方法:


HTTPS:/ /blogs.msdn.microsoft.com/visualstudioalm/2014/08/18/perftips-performance-information-at-a-glance-while-debugging-with-visual-studio/


最诚挚的问候,


杰克


Hi all,

I wanted to find the time taken by each function to complete its execution. I know in VS 2015 Diagnostic tools we can find the elapsed time for each function. 

In my case there are large number of functions getting called and I don't think finding each function's time by going though each line is the right way.

Also I need to find only the time taken by user defined functions. 

Is there any tool which I can run and get the time for each function.

I am using VS 2015 community edition. Is this type of tool available in any other versions?

Thanks in advance.

解决方案

Hi Viknesh Ramm,

Some profiler tools would be the better choices for you:

https://stackoverflow.com/questions/947658/tools-to-profile-function-execution-times-of-a-net-program

Or the PerfTips would be a workaround for you:

https://blogs.msdn.microsoft.com/visualstudioalm/2014/08/18/perftips-performance-information-at-a-glance-while-debugging-with-visual-studio/

Best Regards,

Jack


这篇关于分析代码中每个用户定义函数所花费的时间。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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