花费在方法上的时间 [英] Time Spent in a Method
本文介绍了花费在方法上的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
全部好,
任何人都知道如何在运行时间的方法中花费时间。希望这个问题一定很有趣。但我想出了这个想法,在我的项目中实施。这样我就可以监控花费的时间。有没有人有任何想法?
HI all,
Anyone know how to get Time Spent in a Method duing RUN TIME. hope this question must be funny. but i came up with this idea to implement in my project. so that i can monitor where exactly more time has been spent. does any one have any idea?
推荐答案
要添加CPallini建议的内容,还有.NET 秒表类 [ ^ ] whihc也可以让你测量它。
To add to what CPallini suggests, there is also the .NET Stopwatch class[^] whihc will let you measure it as well.
A profiler [ ^ ]知道。
另外, Google [ ^ ]帮助。
A profiler[^] knows.
Also, Google[^] helps.
你好,
如果你想做一些非常酷的事情,你可以使用CLR注射。
非常感兴趣关于CP的文章:
CLR注入:运行时方法替换 [ ^ ]
此处还可以找到更深入的解释:
http://www.ntcore.com/Files/netint_injection.htm [ ^ ]
Valery。
Hello,
If you want to do something really cool, you could use CLR injection.
There's a very interesting article about it on CP:
CLR Injection: Runtime Method Replacer[^]
And also a more in depth explanation can be found here:
http://www.ntcore.com/Files/netint_injection.htm[^]
Valery.
这篇关于花费在方法上的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文