Use the Fetch Group Monitor to measure fetch group field usage. This can be useful for performance analysis in a complex system.
Enable this monitor using the System property org.eclipse.persistence.fetchgroupmonitor=true
.
The monitor dumps the attribute used for a class every time a new attribute is accessed.
For more information about fetch groups, see Fetch Groups.