previous      content      next
Values of primitive types

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 5. They help locating (identifying) a particular object among other objects of the same class. The profiler can search for strings, char arrays or byte arrays, even with regular expressions (Memory | Strings by Pattern... (Ctrl+F) action).

Values of primitive fields and arrays of primitive types are shown in object explorers:

Also, a text representation in specified encoding can be seen for byte[] in Quick Info.

previous      content      next