[Spice-devel] [RFC PATH 0/2] Improve statistic code

Frediano Ziglio fziglio at redhat.com
Tue Nov 17 05:58:27 PST 2015


Mainly this set of patches try to reduce usage of preprocessor
and retaining optimization.
This make possible to check code (beside code that print
statistics) with single set of configure options.

Patch is still RFC for different reasons:
- compress and normal statistics are not separate
  and structure are defined when a single option is turned on;
- node statistics are not using these style.

Frediano Ziglio (2):
  stat: use a better design for statistic functions
  stat: add test for statistic functions

 server/display-channel.c |  2 --
 server/display-channel.h |  4 +--
 server/red_worker.c      | 62 +++++++++++++++---------------------
 server/stat.h            | 57 +++++++++++++++++++++------------
 server/tests/.gitignore  |  5 +++
 server/tests/Makefile.am | 35 ++++++++++++++++++++
 server/tests/stat-main.c | 49 ++++++++++++++++++++++++++++
 server/tests/stat-test.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 236 insertions(+), 61 deletions(-)
 create mode 100644 server/tests/stat-main.c
 create mode 100644 server/tests/stat-test.c

-- 
2.4.3



More information about the Spice-devel mailing list