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

Helper class to calculate the statistics for Open GLES calls. More...

#include <gl-proxy-implementation.h>

Public Member Functions

 Sampler (const char *description)
 Constructor. More...
 
void Increment ()
 Increment the counter for this frame. More...
 
void Reset ()
 Reset the counter. More...
 
void Accumulate ()
 Accumulate the count onto statistics. More...
 
const char * GetDescription () const
 
float GetMeanValue () const
 
float GetStandardDeviation () const
 
float GetMin () const
 
float GetMax () const
 

Private Attributes

const char * mDescription
 
float mAccumulated
 
float mAccumulatedSquare
 
float mMin
 
float mMax
 
unsigned int mNumSamples
 
unsigned int mCurrentFrameCount
 

Detailed Description

Helper class to calculate the statistics for Open GLES calls.

Definition at line 35 of file gl-proxy-implementation.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::Sampler::Sampler ( const char *  description)

Constructor.

Parameters
descriptionto write to the log

Definition at line 42 of file gl-proxy-implementation.cpp.

Member Function Documentation

void Dali::Internal::Adaptor::Sampler::Accumulate ( )

Accumulate the count onto statistics.

Definition at line 68 of file gl-proxy-implementation.cpp.

References mAccumulated, mAccumulatedSquare, mCurrentFrameCount, mMax, mMin, and mNumSamples.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::AccumulateSamples().

Here is the caller graph for this function:

const char * Dali::Internal::Adaptor::Sampler::GetDescription ( ) const
Returns
the description of the sampler

Definition at line 93 of file gl-proxy-implementation.cpp.

References mDescription.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogCalls().

Here is the caller graph for this function:

float Dali::Internal::Adaptor::Sampler::GetMax ( ) const
Returns
the maximum value

Definition at line 123 of file gl-proxy-implementation.cpp.

References mMax.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogCalls().

Here is the caller graph for this function:

float Dali::Internal::Adaptor::Sampler::GetMeanValue ( ) const
Returns
the mean value

Definition at line 98 of file gl-proxy-implementation.cpp.

References mAccumulated, and mNumSamples.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogCalls().

Here is the caller graph for this function:

float Dali::Internal::Adaptor::Sampler::GetMin ( ) const
Returns
the minimum value

Definition at line 118 of file gl-proxy-implementation.cpp.

References mMin.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogCalls().

Here is the caller graph for this function:

float Dali::Internal::Adaptor::Sampler::GetStandardDeviation ( ) const
Returns
the standard deviation

Definition at line 108 of file gl-proxy-implementation.cpp.

References mAccumulated, mAccumulatedSquare, and mNumSamples.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::LogCalls().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Sampler::Increment ( )

Increment the counter for this frame.

Definition at line 53 of file gl-proxy-implementation.cpp.

References mCurrentFrameCount.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::ActiveTexture(), Dali::Internal::Adaptor::GlProxyImplementation::BindBuffer(), Dali::Internal::Adaptor::GlProxyImplementation::BindTexture(), Dali::Internal::Adaptor::GlProxyImplementation::Clear(), Dali::Internal::Adaptor::GlProxyImplementation::DrawArrays(), Dali::Internal::Adaptor::GlProxyImplementation::DrawElements(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform1f(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform1fv(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform1i(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform1iv(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform2f(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform2fv(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform2i(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform2iv(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform3f(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform3fv(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform3i(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform3iv(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform4f(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform4fv(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform4i(), Dali::Internal::Adaptor::GlProxyImplementation::Uniform4iv(), Dali::Internal::Adaptor::GlProxyImplementation::UniformMatrix2fv(), Dali::Internal::Adaptor::GlProxyImplementation::UniformMatrix3fv(), Dali::Internal::Adaptor::GlProxyImplementation::UniformMatrix4fv(), and Dali::Internal::Adaptor::GlProxyImplementation::UseProgram().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Sampler::Reset ( )

Reset the counter.

Definition at line 58 of file gl-proxy-implementation.cpp.

References mAccumulated, mAccumulatedSquare, mCurrentFrameCount, mMax, mMin, and mNumSamples.

Referenced by Dali::Internal::Adaptor::GlProxyImplementation::ResetSamplers().

Here is the caller graph for this function:

Member Data Documentation

float Dali::Internal::Adaptor::Sampler::mAccumulated
private

Definition at line 88 of file gl-proxy-implementation.h.

Referenced by Accumulate(), GetMeanValue(), GetStandardDeviation(), and Reset().

float Dali::Internal::Adaptor::Sampler::mAccumulatedSquare
private

Definition at line 89 of file gl-proxy-implementation.h.

Referenced by Accumulate(), GetStandardDeviation(), and Reset().

unsigned int Dali::Internal::Adaptor::Sampler::mCurrentFrameCount
private

Definition at line 93 of file gl-proxy-implementation.h.

Referenced by Accumulate(), Increment(), and Reset().

const char* Dali::Internal::Adaptor::Sampler::mDescription
private

Definition at line 87 of file gl-proxy-implementation.h.

Referenced by GetDescription().

float Dali::Internal::Adaptor::Sampler::mMax
private

Definition at line 91 of file gl-proxy-implementation.h.

Referenced by Accumulate(), GetMax(), and Reset().

float Dali::Internal::Adaptor::Sampler::mMin
private

Definition at line 90 of file gl-proxy-implementation.h.

Referenced by Accumulate(), GetMin(), and Reset().

unsigned int Dali::Internal::Adaptor::Sampler::mNumSamples
private

Definition at line 92 of file gl-proxy-implementation.h.

Referenced by Accumulate(), GetMeanValue(), GetStandardDeviation(), and Reset().


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