veyron/tools/debug: Add debug command-line tool

This change adds a command-line tool to interact with the debug server
that's built into all IPC servers. We can access log files, inspect
stats, and run pprof.

$ export NAMESPACE_ROOT=/proxy.envyor.com:8101

$ ./debug glob tunnel/hostname/rpi001/__debug/*
tunnel/hostname/rpi001/__debug/logs
tunnel/hostname/rpi001/__debug/pprof
tunnel/hostname/rpi001/__debug/stats

$ ./debug glob tunnel/hostname/rpi001/__debug/logs/*INFO
tunnel/hostname/rpi001/__debug/logs/tunneld.INFO

$ ./debug logs read tunnel/hostname/rpi001/__debug/logs/tunneld.INFO
[...]

$ ./debug pprof run tunnel/hostname/rpi001/__debug/pprof heap -text
[...]

$ ./debug stats watchglob tunnel/hostname/rpi001/__debug/stats/...
[...]

etc.

Change-Id: I36dc6d8b77b97a76548589b1d215e952f5541714
4 files changed
tree: c3555d0e83556fb5ff90b603d8201f156079854b
  1. lib/
  2. profiles/
  3. runtimes/
  4. security/
  5. services/
  6. tools/