View Source espace_opcount (espace v0.9.0)
Summary
Functions
Return the current counts for the unnamed instance as a map.
Increment a single espace op counter for the unnamed instance.
Increment a single espace op counter for a named instance.
Create a new ops counter array for the unnamed instance.
Create a new ops counter array for a named instance.
Reset all the op counters of the unnamed instance.
Reset all the op counters of a named instance.
Types
Functions
Return the current counts for the unnamed instance as a map.
See counts/1 for details.-spec incr(espace_op()) -> ok.
Increment a single espace op counter for the unnamed instance.
See incr/1 for details.Increment a single espace op counter for a named instance.
In the interest of keeping the code simple, the counter index of each op corresponds to the position ofOp
in the record tuple, which ranges from 2 to 7.
-spec new() -> ok.
Create a new ops counter array for the unnamed instance.
See new/1 for details.-spec new(atom()) -> ok.
Create a new ops counter array for a named instance.
The array will have one counter per espace operation. The counters ref is saved in as a persistent term.-spec reset() -> ok.
Reset all the op counters of the unnamed instance.
Seereset/1
for details.
-spec reset(atom()) -> ok.
Reset all the op counters of a named instance.
This function has been provided for investigating an application.