diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 15:36:53 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 16:03:03 -0600 |
commit | 686b6a334173c40ae91d3cdd7d7d759bf8851df6 (patch) | |
tree | ba4d50edab37175bd1f1958e458257b50f27fe90 /tx_test.go | |
parent | Merge pull request #111 from benbjohnson/flock (diff) | |
download | dedo-686b6a334173c40ae91d3cdd7d7d759bf8851df6.tar.gz dedo-686b6a334173c40ae91d3cdd7d7d759bf8851df6.tar.xz |
Add performance counters.
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 #108.
Diffstat (limited to 'tx_test.go')
-rw-r--r-- | tx_test.go | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -436,7 +436,6 @@ func TestTxCursorIterate(t *testing.T) { assert.Equal(t, len(items), index) tx.Rollback() }) - fmt.Fprint(os.Stderr, ".") return true } if err := quick.Check(f, qconfig()); err != nil { @@ -477,7 +476,6 @@ func TestTxCursorIterateReverse(t *testing.T) { assert.Equal(t, len(items), index) tx.Rollback() }) - fmt.Fprint(os.Stderr, ".") return true } if err := quick.Check(f, qconfig()); err != nil { |