Module percept_db

Percept database.

Description

Percept database.

Data Types

activity_option()

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()

information_option() = all | procs | ports | pid() | port()

scheduler_option()

scheduler_option() = {ts_min, timestamp()} | {ts_max, timestamp()} | {ts_exact, bool()} | {id, scheduler_id()}

system_option()

system_option() = start_ts | stop_ts

Function Index

consolidate/0Checks timestamp and state-flow inconsistencies in the the database.
insert/1Inserts a trace or profile message to the database.
select/1Synchronous call.
select/2Equivalent to select({Table, Options}).
start/0Starts or restarts the percept database.
stop/0Stops the percept database.

Function Details

consolidate/0

consolidate() -> Result

Checks timestamp and state-flow inconsistencies in the the database.

insert/1

insert(Trace::tuple()) -> ok

Inserts a trace or profile message to the database.

select/1

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/2

select(Table::atom(), Options::list()) -> Result

Equivalent to select({Table, Options}).

start/0

start() -> {started, pid()} | {restarted, pid()}

Starts or restarts the percept database.

stop/0

stop() -> not_started | {stopped, pid()}

Stops the percept database.


Generated by EDoc