Module JavaRuntime

module JavaRuntime: sig .. end
Runtime information.

type t = java'lang'Runtime java_instance
The type of runtime instances.
 
val get_runtime : unit -> t
Returns the runtime for the current Java application; see getRuntime(...).
 
val available_processors : t -> java_int
Returns the number of (logical) available processors; see availableProcessors(...).
 
val free_memory : t -> java_long
Returns the amount of free memory in the JVM (in bytes); see freeMemory(...).
 
val max_memory : t -> java_long
Returns the maximum amount of memory to be used by the JVM (in bytes); see maxMemory(...).
 
val total_memory : t -> java_long
Returns the total amount of memory used by the JVM (in bytes); see totalMemory(...).