[Spice-devel] [PATCH spice 2/2] Do not enable statistic by default

Pavel Grunt pgrunt at redhat.com
Thu Oct 27 06:58:04 UTC 2016


On Wed, 2016-10-26 at 10:56 -0400, Frediano Ziglio wrote:
> > 
> > ---
> >  server/Makefile.am | 1 -
> >  1 file changed, 1 deletion(-)
> > 
> > diff --git a/server/Makefile.am b/server/Makefile.am
> > index 2a6010b..0514a2c 100644
> > --- a/server/Makefile.am
> > +++ b/server/Makefile.am
> > @@ -3,7 +3,6 @@ SUBDIRS = . tests
> >  
> >  AM_CPPFLAGS =					\
> >  	-DSPICE_SERVER_INTERNAL			\
> > -	-DRED_STATISTICS			\
> >  	$(COMMON_CFLAGS)			\
> >  	$(GLIB2_CFLAGS)				\
> >  	$(GOBJECT2_CFLAGS)			\
> 
> I think the rationale here is nobody uses these.

yes. I don't think statistics are interesting for everybody. It is
more a feature for developers, lets not force them.

> Actually I think these statistics could be extended with stuff
> like image compression (size ratio at least, perhaps cpu could
> be expensive).
Why not, it can be useful for the performance measure Jonathon talked
about.
> 
We have many defines to extend debugging:
 * DEBUG
 * DEBUG_DISPATCHER
 * DEBUG_ENCODE
 * COMPRESS_DEBUG
 * STREAM_STAT
 * COMPRESS_STAT
 * RED_WORKER_STAT
 * RED_STATISTIC
and more are in spice-common

imho we should consider merging them, I believe it would make them
easier to use

Pavel

> Frediano


More information about the Spice-devel mailing list