/** * Whether the jvm can support UnsafeSizeOf implementation. */ public boolean supportsUnsafeSizeOf() { return parent.supportsUnsafeSizeOf(); }
/** * 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."); } }
/** * Whether the jvm can support UnsafeSizeOf implementation. */ public boolean supportsUnsafeSizeOf() { return parent.supportsUnsafeSizeOf(); }
/** * Whether the jvm can support UnsafeSizeOf implementation. */ public boolean supportsUnsafeSizeOf() { return parent.supportsUnsafeSizeOf(); }
/** * 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."); } }