Refactor and clean-up cli and core
authorAntoine Busque <abusque@efficios.com>
Sun, 25 Oct 2015 05:25:07 +0000 (01:25 -0400)
committerAntoine Busque <abusque@efficios.com>
Sun, 25 Oct 2015 05:48:42 +0000 (01:48 -0400)
commitb6d9132be210152aed58a6b1f05e8203ecd4c073
tree777e52fd8ad3cf6eb25a74c57e13270a90ecce72
parente482262b836e30c288740cae1008bc10e3803d6b
Refactor and clean-up cli and core

This refactor mainly refactors modules within the cli package in order
to reduce the duplicated code between separate commands. This allows
for new analyses to be added in a much simpler fashion.

The second significant portion of the refactor is the removal of all
refresh/reset or otherwise analysis-state affecting code from the cli,
and its reimplementation within the analysis itself. The cli now
simply feeds events to the analysis (and state automaton), and
receives notifications to which it can react. For now, the only
notification type is received whenever an analysis period has ended,
in which case the default cli behaviour is to output the results.

Some other minor style clean-up is also performed where was deemed
necessary.

Signed-off-by: Antoine Busque <abusque@efficios.com>
13 files changed:
lttnganalyses/cli/command.py
lttnganalyses/cli/cputop.py
lttnganalyses/cli/io.py
lttnganalyses/cli/irq.py
lttnganalyses/cli/memtop.py
lttnganalyses/cli/progressbar.py
lttnganalyses/cli/syscallstats.py
lttnganalyses/core/analysis.py
lttnganalyses/core/cputop.py
lttnganalyses/core/io.py
lttnganalyses/core/irq.py
lttnganalyses/core/memtop.py
lttnganalyses/core/syscalls.py
This page took 0.028324 seconds and 5 git commands to generate.