Values of primitive types (int, boolean, double etc.)
are available in a memory snapshot if it is:
-
YourKit format snapshot (*.snapshot) of profiled application running on Java 6 or newer.
Note: for Sun Java 6, update 4 or newer is required (because of a JVM bug 6540288)
-
HPROF-format snapshot of profiled application running on Java 6 or newer, or captured on OutOfMemoryError
Values of strings (i.e. instances of java.lang.String) are special case, and are available
in YourKit format snapshots even if profiled application runs on Java older than Java 6.
They help locating (identifying) a particular object among other objects of the same class.
YourKit Java Profiler can search for strings, even with regular expressions
(Memory | Strings by Pattern... (Ctrl+F) action).
Values of primitive fields are shown in object explorers:
Values of primitive type arrays are shown in "Memory | Quick Info (Ctrl+Q)":
