diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 16:03:16 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-02 16:03:16 -0600 |
commit | 20a1479c4c7ff050fe6ecdec9f13a9b3eb29c760 (patch) | |
tree | ba4d50edab37175bd1f1958e458257b50f27fe90 /bucket.go | |
parent | Merge pull request #111 from benbjohnson/flock (diff) | |
parent | Add performance counters. (diff) | |
download | dedo-20a1479c4c7ff050fe6ecdec9f13a9b3eb29c760.tar.gz dedo-20a1479c4c7ff050fe6ecdec9f13a9b3eb29c760.tar.xz |
Merge pull request #112 from benbjohnson/perf-stats
Add performance counters.
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -65,6 +65,10 @@ func (b *Bucket) Writable() bool { // The cursor is only valid as long as the transaction is open. // Do not use a cursor after the transaction is closed. func (b *Bucket) Cursor() *Cursor { + // Update transaction statistics. + b.tx.stats.CursorCount++ + + // Allocate and return a cursor. return &Cursor{ tx: b.tx, root: b.root, |