Skip to content

Commit

Permalink
added cpu and threads to stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Mar 10, 2018
1 parent 4c2c1dd commit 9428b84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/stats.go
Expand Up @@ -118,6 +118,8 @@ func (c *Controller) cmdServer(msg *server.Message) (res resp.Value, err error)
m["avg_item_size"] = avgsz
m["pointer_size"] = (32 << uintptr(uint64(^uintptr(0))>>63)) / 8
m["read_only"] = c.config.readOnly()
m["cpus"] = runtime.NumCPU()
m["threads"] = runtime.GOMAXPROCS(0)

switch msg.OutputType {
case server.JSON:
Expand Down

0 comments on commit 9428b84

Please sign in to comment.