Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Add performance counters. #112

Merged
merged 1 commit into from
Apr 2, 2014
Merged

Conversation

benbjohnson
Copy link
Member

This commit adds performance counters for each transaction which are rolled up to the database level on each commit/rollback. Counters are meant to be a very fast way to track what is going on in the database. A few timers are also added in areas where the time.Now() overhead is not noticeable.

The DB.Stat() function is now deprecated since the bolt CLI performs similar functions with better granularity. The DB.Check() is also available for checking consistency.

Running go test -v -stats will now print out the performance counters for each DB used in the tests.

Fixes #108.

/cc @snormore

This commit adds performance counters for each transaction which are rolled
up to the database level on each commit/rollback. Counters are meant to be
a very fast way to track what is going on in the database. A few timers are
also added in areas where the time.Now() overhead is not noticible.

The DB.Stat() function is now deprecated since the `bolt` CLI now performs
similar functions.

Fixes boltdb#108.
benbjohnson added a commit that referenced this pull request Apr 2, 2014
@benbjohnson benbjohnson merged commit 20a1479 into boltdb:master Apr 2, 2014
@benbjohnson benbjohnson deleted the perf-stats branch April 2, 2014 22:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance Statistics
1 participant