cli: refactor progress indication
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 15 Apr 2016 15:14:43 +0000 (11:14 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 15 Apr 2016 19:33:39 +0000 (15:33 -0400)
commitdd2efe704ad3e95d96297cf7a5669392e658165a
treec6f199f351baf2ffbcf9bb4948d7bef4c3d1349b
parent01418f457718a46e6b60be9297199161d9ac8ad9
cli: refactor progress indication

This patch:

  * Increases the encapsulation of the different progress
    indicators: the progress code does not access its
    owner's attributes anymore
  * Makes the progress update at most every 100 ms
  * Makes the progress indication use the current timestamp
    and the trace collection's begin/end timestamps to
    approximate its position; falls back on approximating
    with the size if those timestamps are not available
  * Adds the general --progress-use-size CLI option to
    reverse to the old default behaviour of approximating
    with the size

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
lttnganalyses/cli/command.py
lttnganalyses/cli/progressbar.py
This page took 0.023743 seconds and 5 git commands to generate.