Refactor utils from linuxautomaton/common into the common package
authorAntoine Busque <abusque@efficios.com>
Thu, 10 Mar 2016 19:24:14 +0000 (14:24 -0500)
committerAntoine Busque <abusque@efficios.com>
Thu, 10 Mar 2016 22:57:41 +0000 (17:57 -0500)
commit9079847d5685e5f562f08db2a325ac8b9e7ce1c3
tree38111255c81dfc8dc85f2b1eae0ed79a304c261b
parent32b04f6769f2c2e254ee02c4affe7b1c4154b4aa
Refactor utils from linuxautomaton/common into the common package

This refactor/clean-up targets the utility functions previously found
at linuxautomaton/common.py, despite them being used across all
packages. Unused methods have been culled, while others have been
merged, split, or simplified.

All methods are extensively documented. One of the main goals of this
refactor was to improve testability. Unit tests will therefore be
implemented for these methods shortly.

The methods have been pythonified quite a bit as well. Most now make
use of exceptions, in concordance with the python philosophy of EAFP
over LBYL.

Signed-off-by: Antoine Busque <abusque@efficios.com>
14 files changed:
lttnganalyses/cli/command.py
lttnganalyses/cli/io.py
lttnganalyses/cli/irq.py
lttnganalyses/cli/sched.py
lttnganalyses/common/format_utils.py
lttnganalyses/common/parse_utils.py [new file with mode: 0644]
lttnganalyses/common/time_utils.py [new file with mode: 0644]
lttnganalyses/common/trace_utils.py [new file with mode: 0644]
lttnganalyses/core/io.py
lttnganalyses/linuxautomaton/common.py [deleted file]
lttnganalyses/linuxautomaton/io.py
lttnganalyses/linuxautomaton/statedump.py
lttnganalyses/linuxautomaton/sv.py
tests/expected/iolatencytop.txt
This page took 0.024697 seconds and 5 git commands to generate.