View Source DataTracer (data_tracer v0.1.1)
Facilitates debugging by holding data traces of interesting data. Is a GenServer so it can own an ets table to store the data in.
Link to this section Summary
Functions
Retrieve all entries that have been stored
Clear the DataTracer
Clear the DataTracer
Retrieve the last entry that was stored
Retrieve all values that have been stored under the key in the DataTracer
Store the given value in the DataTracer
Store the given value in the DataTracer
Store the given value in the DataTracer uniquely
Options
Link to this section Functions
Retrieve all entries that have been stored
Options:
:table
- The ETS table to read from (optional, only needed if the table name was customized when the DataTracer was started)
Clear the DataTracer
see clear/1
for details
Clear the DataTracer
Options:
:tracer
- The DataTracer instance to store the value in. Defaults to Elixir.DataTracer.
Retrieve the last entry that was stored
See last/1
for options
Retrieve all values that have been stored under the key in the DataTracer
Returns the values in desc order by timestamp. This means that the first value returned is the last value that was stored for the given key.
Use nil
as the key to retrieve values that were stored without a specific key.
Options:
:table
- The ETS table to read from (optional, only needed if the table name was customized when the DataTracer was started)
Store the given value in the DataTracer
see store/2
for details
Store the given value in the DataTracer
Options:
:key
- The key that the value is stored under. Defaults tonil
:time
- The timestamp to associate with the value (primarily used for sorting). Defaults to the current time.:tracer
- The DataTracer instance to store the value in. Defaults to Elixir.DataTracer.
Store the given value in the DataTracer uniquely
The first instance of the found value is replaced with the new value
See store_uniq/2
for options
Options:
:key
- The key that the value is stored under. Defaults tonil
:time
- The timestamp to associate with the value (primarily used for sorting). Defaults to the current time.:tracer
- The DataTracer instance to store the value in. Defaults to Elixir.DataTracer.