Free Electron
Classes | Public Member Functions | Private Attributes | List of all members
fe::Profiler Class Reference

Group of tick-based precision profilers. More...

#include <Profiler.h>

Inheritance diagram for fe::Profiler:
Inheritance graph
[legend]

Classes

class  Profile
 Tick-based precision time meter. More...
 
class  Stage
 Guard-style scope control for a Profiler. More...
 

Public Member Functions

 Profiler (String name)
 
const Stringname (void) const
 
void registerProfile (hp< Profile > hpProfile)
 
void begin (void)
 
void end (void)
 
String report (void)
 Generate a report of current profiles. More...
 
- Public Member Functions inherited from fe::Handled< Profiler >
const hp< Profiler > & getHandle (void) const
 Get a safe handle to this object. More...
 
- Public Member Functions inherited from fe::Protectable
virtual I32 protection (void) const
 
virtual void protect (void)
 
virtual void unprotect (void)
 
virtual Protectableclone (Protectable *pInstance=NULL)
 
- Public Member Functions inherited from fe::Counted
virtual void acquire (void)
 Increment the reference count. More...
 
virtual void acquire (int &rCount)
 Increment the reference count (and get the count) More...
 
virtual void release (void)
 Decrement the reference count. More...
 
virtual void abandon (void)
 Decrement the reference count. More...
 
int count (void) const
 Return the count of references. More...
 
void setName (const String &)
 
void trackReference (void *pReference, String what)
 
void untrackReference (void *pReference)
 
void registerRegion (void *pT, U32 bytes)
 

Private Attributes

List< hp< Profile > > m_profileList
 
String m_name
 

Additional Inherited Members

- Static Public Member Functions inherited from fe::Counted
static String reportTracker (void)
 
static U32 trackerCount (void)
 
- Protected Member Functions inherited from fe::Handled< Profiler >
void abandonHandle (void)
 
- Protected Member Functions inherited from fe::Counted
int releaseInternal (void)
 Decrement the reference count. More...
 
void suppressReport (void)
 

Detailed Description

Group of tick-based precision profilers.

Member Function Documentation

◆ report()

String fe::Profiler::report ( void  )

Generate a report of current profiles.

References fe::String::sPrintf(), and fe::List< T >::toHead().


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