log2hist

command module
v0.0.0-...-1f4e1ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 11 Imported by: 0

README

log2hist

log2hist chews numbers, spits out ascii histograms.

Example

$ shuf -i 2000-65000 -n 200 | log2hist

    [2048, 4096)        8  ∎∎∎
    [4096, 8192)       10  ∎∎∎∎
   [8192, 16384)       19  ∎∎∎∎∎∎∎∎∎
  [16384, 32768)       57  ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
  [32768, 65536)      106  ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎

Credits

The code and idea are heavily influenced by the log2 histograms from bpftrace.

License

MIT.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL