GEOS  3.9.1dev
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
geos::util::Profiler Class Reference

#include <profiler.h>

Public Member Functions

 Profiler ()=default
 
 ~Profiler ()=default
 
 Profiler (const Profiler &)=delete
 
Profileroperator= (const Profiler &)=delete
 
void start (std::string name)
 Start timer for named task. The task is created if does not exist. More...
 
void stop (std::string name)
 Stop timer for named task. Elapsed time is registered in the given task. More...
 
Profileget (std::string name)
 get Profile of named task More...
 

Static Public Member Functions

static Profilerinstance (void)
 Return the singleton instance of the profiler. More...
 

Public Attributes

std::map< std::string, std::unique_ptr< Profile > > profs
 

Detailed Description

Definition at line 136 of file profiler.h.

Constructor & Destructor Documentation

geos::util::Profiler::Profiler ( )
default
geos::util::Profiler::~Profiler ( )
default
geos::util::Profiler::Profiler ( const Profiler )
delete

Member Function Documentation

Profile* geos::util::Profiler::get ( std::string  name)

get Profile of named task

static Profiler* geos::util::Profiler::instance ( void  )
static

Return the singleton instance of the profiler.

Profiler& geos::util::Profiler::operator= ( const Profiler )
delete
void geos::util::Profiler::start ( std::string  name)

Start timer for named task. The task is created if does not exist.

void geos::util::Profiler::stop ( std::string  name)

Stop timer for named task. Elapsed time is registered in the given task.

Member Data Documentation

std::map<std::string, std::unique_ptr<Profile> > geos::util::Profiler::profs

Definition at line 170 of file profiler.h.


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