Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4129191

HPROF: need trace design that takes into account recursion, or exact traces

XMLWordPrintable

    • sparc
    • solaris_2.6

      java -prof causes the wrong time to be collected for recursive methods.

      Example:

      calls: x -> a -> a -> a -> a

      each time a is called it uses t milliseconds The time -prof records for
      the call from a to a is (1 + 2 + 3)t, not 3t. The time -prof records for
      the call from x to a is (1 + 2 + 3 + 4)t, not 4t.

            ohair Kelly Ohair (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: