From 686b6a334173c40ae91d3cdd7d7d759bf8851df6 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Wed, 2 Apr 2014 15:36:53 -0600 Subject: 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. --- tx_test.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'tx_test.go') diff --git a/tx_test.go b/tx_test.go index 16416c1..4a6c329 100644 --- a/tx_test.go +++ b/tx_test.go @@ -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 { -- cgit v1.2.3