Table of Contents

Interface IJVMWrapperStatistics

Namespace
MASES.JCOBridge.C2JBridge.JVMInterop
Assembly
C2JBridge.dll

Public accessor for statistics about JVM JNI pressure

public interface IJVMWrapperStatistics
Extension Methods

Properties

ExceptionJNICalls

Total exceptions raised from JNI methods invocations

long ExceptionJNICalls { get; }

Property Value

long

Remarks

It is always a strict counting value independently from LazyCounting

GlobalRefCount

Current global reference count

long GlobalRefCount { get; }

Property Value

long

Remarks

Can be a lazy, or strict, counting value based on LazyCounting

LazyCounting

Returns true if the lazy counting is enabled

bool LazyCounting { get; }

Property Value

bool

Remarks

To enable a strict counting set the environment variable JCOBRIDGE_StrictStatistics to true.

LocalRefCount

Current local reference count

long LocalRefCount { get; }

Property Value

long

Remarks

It is always a lazy counting value independently from LazyCounting

TotalJNICalls

Total invocations of JNI methods

long TotalJNICalls { get; }

Property Value

long

Remarks

Can be a lazy, or strict, counting value based on LazyCounting

TotalJavaVMCalls

Total invocations of Java VM methods

long TotalJavaVMCalls { get; }

Property Value

long

Remarks

Can be a lazy, or strict, counting value based on LazyCounting

TotalTimeInJNICalls

Total time spent in invocations of JNI methods

[Obsolete("The value is no more measured.")]
TimeSpan TotalTimeInJNICalls { get; }

Property Value

TimeSpan

Uptime

Application up-time in milliseconds

long Uptime { get; }

Property Value

long

WeakGlobalRefCount

Current weak global reference count

long WeakGlobalRefCount { get; }

Property Value

long

Remarks

Can be a lazy, or strict, counting value based on LazyCounting