[RFC PATH 0/2] Improve statistic code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]