Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
Dali::Internal::Adaptor::PerformanceLogger Class Reference

Interface for the performance logger. More...

#include <performance-logger-impl.h>

Inheritance diagram for Dali::Internal::Adaptor::PerformanceLogger:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::PerformanceLogger:
Collaboration graph
[legend]

Public Member Functions

 PerformanceLogger (const char *name)
 Constructor. More...
 
virtual ~PerformanceLogger ()
 Destructor. More...
 
void AddMarker (Dali::PerformanceLogger::Marker markerType)
 Add a performance marker. More...
 
void SetLoggingFrequency (unsigned int logFrequency)
 Set the logging frequency. More...
 
void EnableLogging (bool enable)
 Set logging on or off for this logger. More...
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static PerformanceLoggerPtr New (const char *name)
 Create a new logger. More...
 

Private Member Functions

 PerformanceLogger (const PerformanceLogger &)
 
PerformanceLoggeroperator= (const PerformanceLogger &)
 

Private Attributes

PerformanceInterface::ContextId mContext
 Context of this logger. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 

Detailed Description

Interface for the performance logger.

Definition at line 44 of file performance-logger-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::PerformanceLogger::PerformanceLogger ( const char *  name)

Constructor.

Parameters
[in]nameThe name to assing to the logger

Definition at line 54 of file performance-logger-impl.cpp.

References Dali::Internal::Adaptor::PerformanceInterface::AddContext(), Dali::Internal::Adaptor::anonymous_namespace{performance-logger-impl.cpp}::GetPerformanceInterface(), and mContext.

Referenced by New().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali::Internal::Adaptor::PerformanceLogger::~PerformanceLogger ( )
virtual
Dali::Internal::Adaptor::PerformanceLogger::PerformanceLogger ( const PerformanceLogger )
private

Member Function Documentation

void Dali::Internal::Adaptor::PerformanceLogger::AddMarker ( Dali::PerformanceLogger::Marker  markerType)
void Dali::Internal::Adaptor::PerformanceLogger::EnableLogging ( bool  enable)

Set logging on or off for this logger.

Parameters
[in]enableEnable logging or not

Definition at line 106 of file performance-logger-impl.cpp.

References Dali::Internal::Adaptor::PerformanceInterface::EnableLogging(), Dali::Internal::Adaptor::anonymous_namespace{performance-logger-impl.cpp}::GetPerformanceInterface(), and mContext.

Here is the call graph for this function:

PerformanceLoggerPtr Dali::Internal::Adaptor::PerformanceLogger::New ( const char *  name)
static

Create a new logger.

Parameters
[in]nameThe name of the logger. This needs to be a compile-time literal and alive for the whole lifetime of the performance logger.
Returns
a new logger

Definition at line 48 of file performance-logger-impl.cpp.

References PerformanceLogger().

Here is the call graph for this function:

PerformanceLogger& Dali::Internal::Adaptor::PerformanceLogger::operator= ( const PerformanceLogger )
private
void Dali::Internal::Adaptor::PerformanceLogger::SetLoggingFrequency ( unsigned int  logFrequency)

Set the logging frequency.

Parameters
logFrequencyhow often to log out in seconds

Definition at line 97 of file performance-logger-impl.cpp.

References Dali::Internal::Adaptor::anonymous_namespace{performance-logger-impl.cpp}::GetPerformanceInterface(), mContext, and Dali::Internal::Adaptor::PerformanceInterface::SetLoggingFrequency().

Here is the call graph for this function:

Member Data Documentation

PerformanceInterface::ContextId Dali::Internal::Adaptor::PerformanceLogger::mContext
private

The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali