Percept database.
activity_option() = {ts_min, timestamp()} | {ts_max, timestamp()} | {ts_exact, bool()} | {mfa, {atom(), atom(), byte()}} | {state, active | inactive} | {id, all | procs | ports | pid() | port()}
information_option() = all | procs | ports | pid() | port()
scheduler_option() = {ts_min, timestamp()} | {ts_max, timestamp()} | {ts_exact, bool()} | {id, scheduler_id()}
system_option() = start_ts | stop_ts
| consolidate/0 | Checks timestamp and state-flow inconsistencies in the the database. |
| insert/1 | Inserts a trace or profile message to the database. |
| select/1 | Synchronous call. |
| select/2 | Equivalent to select({Table, Options}).
|
| start/0 | Starts or restarts the percept database. |
| stop/0 | Stops the percept database. |
consolidate() -> Result
Checks timestamp and state-flow inconsistencies in the the database.
insert(Trace::tuple()) -> ok
Inserts a trace or profile message to the database.
select(Query::{atom(), Options}) -> Result
Synchronous call. Selects information based on a query.
Queries:
{system, Option}
Option = system_option()
Result = timestamp()
{information, Options}
Options = [information_option()]
Result = [#information{}]
{scheduler, Options}
Options = [sceduler_option()]
Result = [#activity{}]
{activity, Options}
Options = [activity_option()]
Result = [#activity{}]
Note: selection of Id's are always OR all other options are considered AND.
select(Table::atom(), Options::list()) -> Result
Equivalent to select({Table, Options}).
start() -> {started, pid()} | {restarted, pid()}
Starts or restarts the percept database.
stop() -> not_started | {stopped, pid()}
Stops the percept database.
Generated by EDoc