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

HPROF: gethrvtime()/gettimeofday() vs JVMTI GetCurrentThreadCpuTime()

    Details

    • Subcomponent:
    • Introduced In Build:
      1.5
    • Introduced In Version:
      5.0
    • CPU:
      generic
    • OS:
      generic

      Description

      NEWHPROF: gethrvtime()/gettimeofday() vs JVMTI GetCurrentThreadCpuTime()

      On Solaris, newhprof is using high res timer and gethrvtime().
      On Linux, it's using gettimeofday().
      On Windows, GetTime()?

      If I use the JVMTI GetThreadCpuTime() the performance suffers.
      Recent changes in HotSpot seem to have changed the old 1.4.2 behavior
      of get_thread_cpu_time, making it much slower but more accurate.

      The number of times this is called with cpu=times in newhprof (and old
      hprof for that matter) makes it critical that it be fast.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ohair Kelly Ohair (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: