Add a custom CLI module for DataCollectors
Currently, the mon-collector binary uses the HTools/CLI module, which is OK but mean it links in lots of htools code. By copying that module to DataCollectors/CLI and removing the unneeded code, we reduce the number of modules it depends on fro 20 to 12, meaning both a shorter compiler time (24s to 9s) and a smaller binary (~9.6MB to ~7MB). Also fixes a typo in the original HTools/CLI module, thanks Michele! Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
Showing
- Makefile.am 1 addition, 0 deletionsMakefile.am
- htools/Ganeti/DataCollectors/CLI.hs 77 additions, 0 deletionshtools/Ganeti/DataCollectors/CLI.hs
- htools/Ganeti/DataCollectors/Drbd.hs 1 addition, 1 deletionhtools/Ganeti/DataCollectors/Drbd.hs
- htools/Ganeti/DataCollectors/Program.hs 1 addition, 1 deletionhtools/Ganeti/DataCollectors/Program.hs
- htools/Ganeti/HTools/CLI.hs 1 addition, 1 deletionhtools/Ganeti/HTools/CLI.hs
- htools/mon-collector.hs 4 additions, 3 deletionshtools/mon-collector.hs
Loading
Please register or sign in to comment