/** * Builds a new SizeOf that will filter fields * @param fieldFilter The filter to apply * @param caching Whether to cache reflected fields * @see SizeOfFilter */ public ReflectionSizeOf(SizeOfFilter fieldFilter, boolean caching) { super(fieldFilter, caching); if (!CURRENT_JVM_INFORMATION.supportsReflectionSizeOf()) { LOGGER.warn("ReflectionSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }
/** * Builds a new SizeOf that will filter fields according to the provided filter * * @param filter The filter to apply * @param caching whether to cache reflected fields * @throws UnsupportedOperationException If Unsafe isn't accessible * @see SizeOfFilter */ public UnsafeSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException { super(filter, caching); if (UNSAFE == null) { throw new UnsupportedOperationException("sun.misc.Unsafe instance not accessible"); } if (!CURRENT_JVM_INFORMATION.supportsUnsafeSizeOf()) { LOGGER.warn("UnsafeSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }
/** * Builds a new SizeOf that will filter fields * @param fieldFilter The filter to apply * @param caching Whether to cache reflected fields * @see SizeOfFilter */ public ReflectionSizeOf(SizeOfFilter fieldFilter, boolean caching) { super(fieldFilter, caching); if (!CURRENT_JVM_INFORMATION.supportsReflectionSizeOf()) { LOGGER.warn("ReflectionSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }
/** * Builds a new SizeOf that will filter fields * @param fieldFilter The filter to apply * @param caching Whether to cache reflected fields * @see SizeOfFilter */ public ReflectionSizeOf(SizeOfFilter fieldFilter, boolean caching) { super(fieldFilter, caching); if (!CURRENT_JVM_INFORMATION.supportsReflectionSizeOf()) { LOGGER.warn("ReflectionSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }
/** * Builds a new SizeOf that will filter fields * @param fieldFilter The filter to apply * @param caching Whether to cache reflected fields * @see SizeOfFilter */ public ReflectionSizeOf(SizeOfFilter fieldFilter, boolean caching) { super(fieldFilter, caching); if (!CURRENT_JVM_INFORMATION.supportsReflectionSizeOf()) { LOGGER.warn("ReflectionSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }
/** * Builds a new SizeOf that will filter fields according to the provided filter * * @param filter The filter to apply * @param caching whether to cache reflected fields * @throws UnsupportedOperationException If Unsafe isn't accessible * @see SizeOfFilter */ public UnsafeSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException { super(filter, caching); if (UNSAFE == null) { throw new UnsupportedOperationException("sun.misc.Unsafe instance not accessible"); } if (!CURRENT_JVM_INFORMATION.supportsUnsafeSizeOf()) { LOGGER.warn("UnsafeSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }
/** * Builds a new SizeOf that will filter fields according to the provided filter * * @param filter The filter to apply * @param caching whether to cache reflected fields * @throws UnsupportedOperationException If Unsafe isn't accessible * @see SizeOfFilter */ public UnsafeSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException { super(filter, caching); if (UNSAFE == null) { throw new UnsupportedOperationException("sun.misc.Unsafe instance not accessible"); } if (!CURRENT_JVM_INFORMATION.supportsUnsafeSizeOf()) { LOGGER.warn("UnsafeSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }
/** * Builds a new SizeOf that will filter fields according to the provided filter * * @param filter The filter to apply * @param caching whether to cache reflected fields * @throws UnsupportedOperationException If Unsafe isn't accessible * @see SizeOfFilter */ public UnsafeSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException { super(filter, caching); if (UNSAFE == null) { throw new UnsupportedOperationException("sun.misc.Unsafe instance not accessible"); } if (!CURRENT_JVM_INFORMATION.supportsUnsafeSizeOf()) { LOGGER.warn("UnsafeSizeOf is not always accurate on the JVM (" + CURRENT_JVM_INFORMATION.getJvmDescription() + "). Please consider enabling AgentSizeOf."); } }