本文介绍了花费在方法上的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
全部好, 任何人都知道如何在运行时间的方法中花费时间。希望这个问题一定很有趣。但我想出了这个想法,在我的项目中实施。这样我就可以监控花费的时间。有没有人有任何想法?
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注入:运行时方法替换 [ ^ ] 此处还可以找到更深入的解释: www.ntcore/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: www.ntcore/Files/netint_injection.htm[^] Valery.
更多推荐
花费在方法上的时间
发布评论