-update(?T
- { previous_io_bytes_in = PreviousIOBytesIn
- , previous_io_bytes_out = PreviousIOBytesOut
- , previous_context_switches = PreviousContextSwitches
- }
-) ->
- { {input , CurrentIOBytesIn}
- , {output , CurrentIOBytesOut}
- } = erlang:statistics(io),
- {CurrentContextSwitches, 0} = erlang:statistics(context_switches),
- {_ReductionsTotal, ReductionsDelta} = erlang:statistics(reductions),
- ?T
- { timestamp = os:timestamp()
- , node_id = erlang:node()
- , memory = erlang:memory()
- , previous_io_bytes_in = PreviousIOBytesIn
- , previous_io_bytes_out = PreviousIOBytesOut
- , current_io_bytes_in = CurrentIOBytesIn
- , current_io_bytes_out = CurrentIOBytesOut
- , previous_context_switches = PreviousContextSwitches
- , current_context_switches = CurrentContextSwitches
- , reductions = ReductionsDelta
- }.