Skip to content

igorwwwwwwwwwwwwwwwwwwww/log2hist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

log2hist chews numbers, spits out ascii histograms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages