glatistics
Types
pub type MemoryType {
Total
Processes
ProcessesUsed
System
Atom
AtomUsed
Binary
Code
Ets
}
Constructors
-
Total -
Processes -
ProcessesUsed -
System -
Atom -
AtomUsed -
Binary -
Code -
Ets
Values
pub fn active_tasks_all() -> List(Int)
refer to the docs for the erlang statistics function, specifially for active_tasks_all. Returns the amount of processes and ports that are scheduled
pub fn enable_scheduler_wall_time(set enabled: Bool) -> Bool
Enable or disable scheduler wall time so that it may be measured using stats
pub fn garbage_collection() -> #(Int, Int)
Returns a tuple: #(number of gc’s, words reclaimed). For more info refer to the docs for the erlang statistics function.
pub fn memory(memory_type: MemoryType) -> Int
Get the memory used by a certain part of the beam.
pub fn scheduler_wall_time() -> List(#(Int, Int, Int))
Returns a list of tuples: #(scheduler_id, active_time, total time). Refer to the documentation for erlang statistics Make sure enable_scheduler_wall_time has been called first, or this will panic.