Profiler Class Reference

#include <timer.h>

Collaboration diagram for Profiler:

Public Member Functions

 Profiler (const char *function_name)
 
 ~Profiler ()
 

Private Attributes

Timer tim_
 
const char * name_
 

Detailed Description

Definition at line 93 of file timer.h.

Constructor & Destructor Documentation

◆ Profiler()

Profiler ( const char *  function_name)
inline

Definition at line 97 of file timer.h.

97 : name_(function_name) { }
const char * name_
Definition: timer.h:101

◆ ~Profiler()

~Profiler ( )

Definition at line 81 of file timer.cc.

References ProfileStats::AccStats().

81  {
83 }
Timer tim_
Definition: timer.h:100
const char * name_
Definition: timer.h:101
void AccStats(const char *function_name, double elapsed)
Definition: timer.cc:31
double Elapsed() const
Returns time in seconds.
Definition: timer.h:74
ProfileStats g_profile_stats
Definition: timer.cc:79

Member Data Documentation

◆ name_

const char* name_
private

Definition at line 101 of file timer.h.

◆ tim_

Timer tim_
private

Definition at line 100 of file timer.h.


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