diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-14 12:20:46 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-14 12:20:46 -0600 |
commit | a6d6d964b6a87873139aa8b621185a95b66b6542 (patch) | |
tree | 01c4e2d71046303967eb60f1d409bdf73833a155 /cmd/bolt/main.go | |
parent | Merge pull request #161 from benbjohnson/work (diff) | |
parent | Minor stats fixes. (diff) | |
download | dedo-a6d6d964b6a87873139aa8b621185a95b66b6542.tar.gz dedo-a6d6d964b6a87873139aa8b621185a95b66b6542.tar.xz |
Merge pull request #162 from Shopify/nested_stats2
Recursive/aggregate bucket stats
Diffstat (limited to 'cmd/bolt/main.go')
-rw-r--r-- | cmd/bolt/main.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index 82b5e5c..66c33d2 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -92,6 +92,14 @@ func NewApp() *cli.App { }, }, { + Name: "stats", + Usage: "Aggregate statistics for all buckets matching specified prefix", + Action: func(c *cli.Context) { + path, name := c.Args().Get(0), c.Args().Get(1) + Stats(path, name) + }, + }, + { Name: "bench", Usage: "Performs a synthetic benchmark", Flags: []cli.Flag{ |