edbee - Qt Editor Library
Public Member Functions | Protected Attributes | List of all members
edbee::SimpleProfiler::ProfilerItem Class Reference

the class to 'record a singlel item More...

#include <simpleprofiler.h>

+ Collaboration diagram for edbee::SimpleProfiler::ProfilerItem:

Public Member Functions

 ProfilerItem (const char *filename, int line, const char *function, const char *name)
 the constructor for a profile stat issue More...
 
const char * filename () const
 
int line () const
 
const char * function () const
 
const char * name () const
 
int callCount () const
 
qint64 duration () const
 
qint64 childDuration () const
 
qint64 durationWithoutChilds () const
 
void incCallCount ()
 
void addDuration (qint64 duration)
 
void addChildDuration (qint64 duration)
 

Protected Attributes

const char * filename_
 The filename. More...
 
int line_
 The line. More...
 
const char * function_
 The function/method name. More...
 
const char * name_
 The custom name. More...
 
int callCount_
 The total number of calls. More...
 
qint64 duration_
 The total duration. More...
 
qint64 childDuration_
 Duration of child-items (items called by this item) More...
 

Detailed Description

the class to 'record a singlel item

Constructor & Destructor Documentation

◆ ProfilerItem()

edbee::SimpleProfiler::ProfilerItem::ProfilerItem ( const char *  filename,
int  line,
const char *  function,
const char *  name 
)

the constructor for a profile stat issue

Member Function Documentation

◆ addChildDuration()

void edbee::SimpleProfiler::ProfilerItem::addChildDuration ( qint64  duration)
inline

◆ addDuration()

void edbee::SimpleProfiler::ProfilerItem::addDuration ( qint64  duration)
inline

◆ callCount()

int edbee::SimpleProfiler::ProfilerItem::callCount ( ) const
inline

◆ childDuration()

qint64 edbee::SimpleProfiler::ProfilerItem::childDuration ( ) const
inline

◆ duration()

qint64 edbee::SimpleProfiler::ProfilerItem::duration ( ) const
inline

◆ durationWithoutChilds()

qint64 edbee::SimpleProfiler::ProfilerItem::durationWithoutChilds ( ) const
inline

◆ filename()

const char* edbee::SimpleProfiler::ProfilerItem::filename ( ) const
inline

◆ function()

const char* edbee::SimpleProfiler::ProfilerItem::function ( ) const
inline

◆ incCallCount()

void edbee::SimpleProfiler::ProfilerItem::incCallCount ( )
inline

◆ line()

int edbee::SimpleProfiler::ProfilerItem::line ( ) const
inline

◆ name()

const char* edbee::SimpleProfiler::ProfilerItem::name ( ) const
inline

Member Data Documentation

◆ callCount_

int edbee::SimpleProfiler::ProfilerItem::callCount_
protected

The total number of calls.

◆ childDuration_

qint64 edbee::SimpleProfiler::ProfilerItem::childDuration_
protected

Duration of child-items (items called by this item)

◆ duration_

qint64 edbee::SimpleProfiler::ProfilerItem::duration_
protected

The total duration.

◆ filename_

const char* edbee::SimpleProfiler::ProfilerItem::filename_
protected

The filename.

◆ function_

const char* edbee::SimpleProfiler::ProfilerItem::function_
protected

The function/method name.

◆ line_

int edbee::SimpleProfiler::ProfilerItem::line_
protected

The line.

◆ name_

const char* edbee::SimpleProfiler::ProfilerItem::name_
protected

The custom name.


The documentation for this class was generated from the following files: