Table 5-4 Available Metrics or Features from -Xeprofand -agentlib:hprofData (continued)

Feature

-Xeprof

 

-agentlib:hprof

 

 

 

 

 

 

 

 

 

cpu=samples

cpu=times

heap=dump

heap=sites

 

 

 

 

 

 

Average Inclusive Method

Yes

No

No

N/A

N/A

Clock Times* (page 143)

 

 

 

 

 

 

 

 

 

 

 

Starvation by Method*

Yes

No

No

N/A

N/A

(page 143)

 

 

 

 

 

 

 

 

 

 

 

Starvation Ratio* (page 144)

Yes

No

No

N/A

N/A

 

 

 

 

 

 

Methods with Loops*

Yes

No

Yes

N/A

N/A

(page 144)2

 

 

 

 

 

Lock Contention Ratio by

Yes

No

No

N/A

N/A

Method* (page 155)

 

 

 

 

 

 

 

 

 

 

 

Average Exclusive Method

Yes

No

No

N/A

N/A

Lock Delay* (page 155)

 

 

 

 

 

 

 

 

 

 

 

Exclusive Method Lock

Yes

No

No

N/A

N/A

Delay / Clock Time*

 

 

 

 

 

(page 155)

 

 

 

 

 

 

 

 

 

 

 

Average Inclusive Method

Yes

No

No

N/A

N/A

Lock Delay* (page 155)

 

 

 

 

 

 

 

 

 

 

 

Inclusive Method Lock Delay

Yes

No

No

N/A

N/A

/ Clock Time* (page 155)

 

 

 

 

 

 

 

 

 

 

 

Exclusive Class CPU Times*

Yes

Yes 1

Yes 1

N/A

N/A

(page 144)

 

 

 

 

 

 

 

 

 

 

 

Exclusive Class Clock Times*

Yes

No

No

N/A

N/A

(page 144)

 

 

 

 

 

 

 

 

 

 

 

Exclusive Class Lock Delay*

Yes

No

No

N/A

N/A

(page 156)

 

 

 

 

 

 

 

 

 

 

 

Inline Candidates (page 156)

Yes

No

Yes

N/A

N/A

heuristics

 

 

 

 

 

 

 

 

 

 

 

Exceptions Thrown (page 156)

Yes

No

Yes

N/A

N/A

heuristics

 

 

 

 

 

 

 

 

 

 

 

Memory Leaks (page 156)

No

N/A

N/A

Yes

No

heuristics

 

 

 

 

 

 

 

 

 

 

 

Allocation sites for objects

Yes 4

N/A

Yes

Yes

Yes

Per-thread or

Yes

Yes 3

Yes 3

N/A

Yes 3

per-thread-group view

 

 

 

 

 

 

 

 

 

 

 

Profiling intrusion

Yes

No

No

N/A

N/A

compensation

 

 

 

 

 

1Virtual CPU times, unless on HP-UX; some platforms report clock times

2 Metric values estimated only

3 Requires thread=y (no color-coding or start/stop times available for threads) 4 Requires inlining=disable or running the VM in interpreted mode

See also:

Profiling with -Xeprof (page 61)Profiling with -agentlib:hprof (page 63)

–Xeprof and –agentlib:hprof Profiling Options and Their Corresponding Metrics

67