在command window中输入
>> profile on>> profile clear>> profile viewer
就会出现如下窗口
在将头所指向的位置输入需要测试的函数 按enter开始测试,最终会得到每行代码的运行时间