nikgoodley-ibboost / gprof

Automatically exported from code.google.com/p/gprof
Apache License 2.0
0 stars 0 forks source link

Contains the time of children if the depth is more than two #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
{{{
class C1 {
  void run() {
    new C2().run()
  }
}

class C2 {
  void run() {
    Thread.sleep(1000)
  }
}

profile {
  new C1().run()
}.prettyPrint()
}}}
prints out the result that C1 contains the time of Thread.sleep()
{{{
%      calls  total ms  ms/call  min ms   max ms   method  class
49.94      1   1019.77  1019.77  1019.77  1019.77  run     C1
49.07      1   1001.89  1001.89  1001.89  1001.89  sleep   java.lang.Thread
 0.94      1     19.25    19.25    19.25    19.25  run     C2
 0.03      1      0.59     0.59     0.59     0.59  ctor    C1
 0.02      1      0.40     0.40     0.40     0.40  ctor    C2
}}}

Original issue reported on code.google.com by nagaimas...@gmail.com on 20 Apr 2013 at 8:06