fx power-viz

总结来自 Power Broker 的检查电源事件

usage: fx power-viz [-o OUTPUT_FILE] [--natural] [INPUT_FILE]

[flags]
-o: output file path
--natural: plot events against "1 second/second" timeline

[examples]
fx power-viz -o output.txt
  (Loads the snapshot from an attached Fuchsia device and creates HTML output)

fx power-viz -o output.txt /tmp/snapshot.zip
  (Loads the snapshot from given file and creates HTML output)

fx power-viz -o output.txt /tmp/bugreport.zip
  (Loads the snapshot from given file and creates HTML output)

fx power-viz -o output.txt /tmp/inspect.json
  (Loads the snapshot from given file and creates HTML output)

power-viz 源代码