计算正在执行的代码行 [英] count line of code being executed

查看:75
本文介绍了计算正在执行的代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.
我想计算正在执行的代码行的次数.
整个代码或单独一行执行多少次.
请帮忙.

hello .
I want to calculate the number of times the lines of the code being executed.
as a whole code or as a individual line executed how many time.
please help.

推荐答案

您是否要对代码进行性能分析?如果是这样,请查看一些配置文件软件.您会想到YourKit.net,dotTracer和Redgate ANTS.
Are you trying to do some performance profiling of your code? If so then look into some profiling software. YourKit.net, dotTracer and Redgate ANTS spring to mind.


我不确定您可以在自己的代码中执行此操作.我在Google上搜索了一下,但没有找到任何可用的方法,但是再说一次,我不需要这样做,所以我对周围的环境失去了兴趣.


I''m not sure you can do this from inside your own code. I googled it and came up with nothing usable, but then again, I don''t need to do it so I kinda lost interest in looking around.



这篇关于计算正在执行的代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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