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. cmd/
  2. internal/
  3. AUTHORS
  4. codereview.cfg
  5. CONTRIBUTING.md
  6. CONTRIBUTORS
  7. LICENSE
  8. README.md
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