Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

如果方法执行时间太短,trace会报“No traced method invoked” #104

Open
huoyanxueren opened this issue Nov 8, 2013 · 0 comments
Assignees
Labels

Comments

@huoyanxueren
Copy link

使用Trace命令行,跟踪方法的执行时间。如下面的getName()和getAge()方法。第一此执行trace命令,可以跟踪到执行时间;再执行第二次,第三次,。。。。。都是提示,No traced method invoked。

public class MainTest {

    public static void main(String[] args) {
        Person p = new Person();
        p.setName("justin");
        p.setAge(20);
        int i = 1;

        for (; i > 0;) {
            p.getName();
            p.getAge();
        }

    }
}
@ghost ghost assigned zhongl Nov 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants