# Struct ethcore::trace::TraceDB [−] [src]

    pub struct TraceDB<T> where T: DatabaseExtras { /* fields omitted */ }

Trace database.

## Methods

### `impl<T> TraceDB<T> where T: DatabaseExtras`
[src]

#### `fn new(config: Config, tracesdb: Arc<Database>, extras: Arc<T>) -> Self`

Creates new instance of `TraceDB`.

#### `fn collect_garbage(&self)`

Ticks our cache system and throws out any old data.

## Trait Implementations

### `impl<T> BloomGroupDatabase for TraceDB<T> where T: DatabaseExtras`
[src]

#### `fn blooms_at(&self, position: &GroupPosition) -> Option<BloomGroup>`

### `impl<T> TraceDatabase for TraceDB<T> where T: DatabaseExtras`
[src]

#### `fn tracing_enabled(&self) -> bool`

Returns true if tracing is enabled. Otherwise false.

#### `fn import(&self, batch: &mut DBTransaction, request: ImportRequest)`

Traces of import request's enacted blocks are expected to be already in database or to be the currently inserted trace.

#### `fn trace(&self,
block_number: BlockNumber,
tx_position: usize,
trace_position: Vec<usize>)
-> Option<LocalizedTrace>`

Returns localized trace at given position.

#### `fn transaction_traces(&self,
block_number: BlockNumber,
tx_position: usize)
-> Option<Vec<LocalizedTrace>>`

Returns localized traces created by a single transaction.

#### `fn block_traces(&self, block_number: BlockNumber) -> Option<Vec<LocalizedTrace>>`

Returns localized traces created in given block.

#### `fn filter(&self, filter: &Filter) -> Vec<LocalizedTrace>`

Filter traces matching given filter.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)