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

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

Open

Description

@huoyanxueren

使用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();
        }

    }
}

Activity

  1. ghost assigned on Nov 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions