$(base_adaptor_src_dir)/performance-logging/frame-time-stamp.cpp \
$(base_adaptor_src_dir)/performance-logging/frame-time-stats.cpp \
$(base_adaptor_src_dir)/performance-logging/performance-marker.cpp \
+ $(base_adaptor_src_dir)/performance-logging/performance-server.cpp \
+ $(base_adaptor_src_dir)/performance-logging/performance-interface-factory.cpp \
$(base_adaptor_src_dir)/performance-logging/statistics/stat-context.cpp \
$(base_adaptor_src_dir)/performance-logging/statistics/stat-context-manager.cpp \
$(base_adaptor_src_dir)/separate-update-render/frame-time.cpp \
: mEnvironmentOptions( environmentOptions ),
mKernelTrace( adaptorServices.GetKernelTraceInterface() ),
mSystemTrace( adaptorServices.GetSystemTraceInterface() ),
+#if defined(NETWORK_LOGGING_ENABLED)
mNetworkServer( adaptorServices, environmentOptions ),
+ mNetworkControlEnabled( mEnvironmentOptions.GetNetworkControlMode()),
+#endif
mStatContextManager( *this ),
mStatisticsLogBitmask( 0 ),
- mNetworkControlEnabled( mEnvironmentOptions.GetNetworkControlMode()),
mLoggingEnabled( false ),
mLogFunctionInstalled( false )
{
mEnvironmentOptions.GetPerformanceTimeStampOutput(),
mEnvironmentOptions.GetPerformanceStatsLoggingFrequency());
+#if defined(NETWORK_LOGGING_ENABLED)
if( mNetworkControlEnabled )
{
mLoggingEnabled = true;
mNetworkServer.Start();
}
+#endif
}
PerformanceServer::~PerformanceServer()
{
+#if defined(NETWORK_LOGGING_ENABLED)
if( mNetworkControlEnabled )
{
mNetworkServer.Stop();
}
+#endif
if( mLogFunctionInstalled )
{
void PerformanceServer::LogMarker( const PerformanceMarker& marker, const char* const description )
{
+#if defined(NETWORK_LOGGING_ENABLED)
// log to the network ( this is thread safe )
if( mNetworkControlEnabled )
{
mNetworkServer.TransmitMarker( marker, description );
}
+#endif
// log to kernel trace
if( mPerformanceOutputBitmask & OUTPUT_KERNEL_TRACE )
"%.6f (seconds), %s\n",
(float)( marker.GetTimeStamp().microseconds * MICROSECONDS_TO_SECOND ),
description);
+
}
}
TraceInterface& mKernelTrace; ///< kernel trace interface
TraceInterface& mSystemTrace; ///< system trace interface
Dali::Mutex mLogMutex; ///< mutex
+
+#if defined(NETWORK_LOGGING_ENABLED)
NetworkPerformanceServer mNetworkServer; ///< network server
+ bool mNetworkControlEnabled; ///< Whether network control is enabled
+#endif
+
StatContextManager mStatContextManager; ///< Stat context manager
unsigned int mStatisticsLogBitmask; ///< statistics log level
unsigned int mPerformanceOutputBitmask; ///< performance marker output
- bool mNetworkControlEnabled:1; ///< Whether network control is enabled
+
bool mLoggingEnabled:1; ///< whether logging update / render to a log is enabled
bool mLogFunctionInstalled:1; ///< whether the log function is installed
};
// INTERNAL INCLUDES
#include <base/thread-controller.h>
-#if defined(NETWORK_LOGGING_ENABLED)
# include <base/performance-logging/performance-interface-factory.h>
-#endif
#include <base/lifecycle-observer.h>
#include <dali/devel-api/text-abstraction/font-client.h>
// Note, Tizen does not use DALI_RETAINS_ALL_DATA, as it can reload images from
// files automatically.
-#if defined(NETWORK_LOGGING_ENABLED)
if( mEnvironmentOptions->PerformanceServerRequired() )
{
mPerformanceInterface = PerformanceInterfaceFactory::CreateInterface( *this, *mEnvironmentOptions );
}
-#endif
mCallbackManager = CallbackManager::New();