help="Draw histograms of reported energy values per measurement interval (i.e., the differences between each pair of consecutive total energy readings), measurement interval duration, and mean power values per measurement interval (calculated from energy difference and duration). Each histogram uses N buckets",
)
parser.add_argument(
"--with-hardware-states",
action="store_true",
help="Log CPU and peripheral states as well as energy readings. Requires EnergyTrace++ support. Reduces the sample rate to about 1 kHz.",
)
parser.add_argument(
"duration",type=int,nargs="?",help="Measurement duration in seconds"