cmd/viewcore: allow to limit 'histogram' output

The histogram command now takes an optional flag --top=N.
If a positive N is supplied, only top-N buckets are printed.

This change registers 'histo' as an alias of 'histogram'.

Change-Id: I372fa733ca2544c4bbdb122dc3748edb52e1a08c
Reviewed-on: https://go-review.googlesource.com/128975
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
1 file changed
tree: 861adb7d90698bb6b2550523f5a14fa6e6bbc27b
  1. AUTHORS
  2. CONTRIBUTING.md
  3. CONTRIBUTORS
  4. LICENSE
  5. README.md
  6. cmd/
  7. codereview.cfg
  8. internal/
README.md

Go Debug

This repository holds utilities and libraries for debugging Go programs.

WARNING! Please expect breaking changes and unstable APIs. Most of them are currently are at an early, experimental stage.

Report Issues & Send Changes