Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 2.04 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How can I compute durations of nested method calls?
  2. _time   sequence    event
  3. ======= ========    =============
  4. t00         1       Request Enter
  5. t01         2       Method Enter
  6. t02         3       Method Exit
  7. t03         4       Method Enter
  8. t04         5       Method Enter
  9. t05         6       Method Enter
  10. t06         7       Method Exit
  11. t07         8       Method Exit
  12. t08         9       Method Exit
  13. t09         10      Request Exit
  14.  
  15. t10         1       Request Enter
  16. t11         2       Method Enter
  17. t12         3       Method Exit
  18. t13         4       Method Enter
  19. t14         5       Method Exit
  20. t15         6       Method Enter
  21. t15         7       Method Enter
  22. t16         8       Method Exit
  23. t17         9       Method Exit
  24. t19         10      Request Exit
  25.        
  26. _time   sequence    event           Elapsed     Comment
  27. ======= ========    =============   ========    ============
  28. t00     1           Request Enter  
  29. t01     2           Method Enter    d01         = t01 - t00
  30. t02     3           Method Exit     d02         = t02 - t01
  31. t03     4           Method Enter    d03         = t03 - t02
  32. t04     5           Method Enter    d04         = t04 - t03
  33. t05     6           Method Enter    d05         = t05 - t04
  34. t06     7           Method Exit     d06         = t06 - t05
  35. t07     8           Method Exit     d07         = t07 - t04 <--
  36. t08     9           Method Exit     d08         = t08 - t03 <--
  37. t09     10          Request Exit    d09         = t09 - t00 <--
  38.  
  39. t10     1           Request Enter   d10         = t10 - t09
  40. t11     2           Method Enter    d11         = t11 - t10
  41. t12     3           Method Exit     d12         = t12 - t11
  42. t13     4           Method Enter    d13         = t13 - t12
  43. t14     5           Method Exit     d14         = t14 - t13
  44. t15     6           Method Enter    d15         = t15 - t14
  45. t16     7           Method Enter    d16         = t16 - t15
  46. t17     8           Method Exit     d17         = t17 - t16
  47. t18     9           Method Exit     d18         = t18 - t15 <--
  48. t19     10          Request Exit    d19         = t19 - t10 <--