YourKit Java Profiler 7.0 supports this feature for HPROF-format snapshots only.
YourKit Java Profiler 7.1 EAP has an option to write primitive values to YourKit format snapshots (*.snapshot) as well. This feature requires:
- Sun Java 6 update 4 or newer. Using this feature with Sun Java 6 earlier than update 4 can cause JVM crash due to a JVM bug 6540288.
- Latest builds of Sun Java 7 EAP
Values of strings (i.e. instances of java.lang.String) are special case, and are saved
to YourKit format snapshots too.
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)":

