views:

98

answers:

0

I am new to netbeans and it's profiler. Somehow I have a strange problem:

 public class Main {
     public static void main(String[] args)
     {
        test1();
        test2();
        test3(); 
     }

When I run CPU Profile, I see the output in the console of all 3 methods:

 Profiler Agent: Established local connection with the tool
 "output test1"
 "output test2"
 "output test3"
 Profiler Agent: Connection with agent closed
 Profiler Agent: Connection with agent closed
 Profiler Agent: Initializing...
 Profiler Agent: Options: >C:\Program Files (x86)
 \NetBeans 6.8\profiler3\lib,5140,10<
 Profiler Agent: Initialized succesfully

 BUILD SUCCESSFUL (total time: 14 seconds)

But when I get my results, it only shows:

main
   tester.Main.main (String[])
        tester.Main.test1();
             //test1methods
        Self time

Why does the profiler skip the other methods defined in main()?