diff --git a/Makefile b/Makefile index ff7d3d8..ac52cd2 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,12 @@ include $(TOP)/configure/CONFIG # Directories to build, any order DIRS += configure -DIRS += $(wildcard *App) -DIRS += $(wildcard iocBoot) +DIRS += p2pApp +ifeq ($(DEVEL),YES) +DIRS += pdbApp +endif +DIRS += testApp +#DIRS += $(wildcard iocBoot) # iocBoot depends on all *App dirs iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS)) diff --git a/common/pvahelper.h b/common/pvahelper.h index 6102292..4eed90d 100644 --- a/common/pvahelper.h +++ b/common/pvahelper.h @@ -400,6 +400,7 @@ private: self->requestUpdate(); // may result in post() } public: +#ifdef DEVEL virtual void getStats(Stats& s) const { guard_t G(lock); @@ -407,6 +408,7 @@ public: s.nfilled = inuse.size(); s.noutstanding = nbuffers - s.nempty - s.nfilled; } +#endif }; template diff --git a/configure/CONFIG_SITE b/configure/CONFIG_SITE index 208aa7e..7cf5798 100644 --- a/configure/CONFIG_SITE +++ b/configure/CONFIG_SITE @@ -34,3 +34,7 @@ CHECK_RELEASE = YES # or CROSS_OPT settings from base/configure/CONFIG_SITE #HOST_OPT = NO #CROSS_OPT = NO + +# enable features which depend on unmerged/unreleased +# features of dependencies. +DEVEL = NO diff --git a/p2pApp/Makefile b/p2pApp/Makefile index 1640de1..8052e6b 100644 --- a/p2pApp/Makefile +++ b/p2pApp/Makefile @@ -5,6 +5,10 @@ include $(TOP)/configure/CONFIG # ADD MACRO DEFINITIONS AFTER THIS LINE #============================= +ifeq ($(DEVEL),YES) +USR_CPPFLAGS += -DDEVEL +endif + PROD_HOST = p2p p2p_SRCS += main.cpp diff --git a/p2pApp/server.cpp b/p2pApp/server.cpp index 275a98a..c63c7e9 100644 --- a/p2pApp/server.cpp +++ b/p2pApp/server.cpp @@ -315,7 +315,9 @@ void statusServer(int lvl, const char *chanexpr) MonitorCacheEntry::interested_t::vector_type usrs; size_t nsrvmon; +#ifdef DEVEL pvd::Monitor::Stats mstats; +#endif bool hastype, hasdata, isdone; { Guard G(ME.mutex()); @@ -325,8 +327,10 @@ void statusServer(int lvl, const char *chanexpr) hasdata = !!ME.lastelem; isdone = ME.done; +#ifdef DEVEL if(ME.mon) ME.mon->getStats(mstats); +#endif if(lvl>2) usrs = ME.interested.lock_vector(); @@ -339,10 +343,12 @@ void statusServer(int lvl, const char *chanexpr) <<"recv'd some data, Has "<<(isdone?"":"not ")<<"finalized\n" " "<< epicsAtomicGetSizeT(&ME.nwakeups)<<" wakeups " <