I am trying to do runtime profiling of a .class file, as part of profiling I need to extract following info
1. Order in which methods are called
2. In case this class refers to any other classes (whether it extends or uses methods of some class)

Is this possible using JVMTI? I had tried using JVMTI but couldn't find out a way of doing it.