PlasCom2  1.0
XPACC Multi-physics simluation application
ix::profiler Namespace Reference

Performance profiling. More...

Detailed Description

Performance profiling.

Classes

struct  cumulative_stats
 Utility struct. More...
 
class  DummyProfilerObj
 noop profiler More...
 
class  Event
 Marks construct entry/exit. More...
 
struct  parallel_stats
 Utility struct. More...
 
class  ProfaneComLine
 ComLineObject for profane. More...
 
class  ProfilerObj
 Performance profiling object. More...
 
struct  scalability_stats
 Utility struct. More...
 
class  testmanager
 

Typedefs

typedef std::map< std::string, unsigned int > FunctionMap
 construct name to unique id. More...
 
typedef std::map< unsigned int, std::string > ConfigMap
 construct name to unique id. More...
 
typedef std::map< unsigned int, cumulative_statsStatMap
 
typedef std::list< std::pair< unsigned int, StatMap > > PStatList
 
typedef std::map< unsigned int, parallel_statsPStatMap
 
typedef std::map< unsigned int, PStatMapScalaMap
 
typedef std::list< std::pair< unsigned int, std::list< Event > > > PEventList
 
typedef std::map< unsigned int, scalability_statsScalaStatMap
 
typedef test::manager< test::resultsTestManagerType
 
typedef test::Global TestGlobalType
 

Enumerations

enum  {
  IMIN_T =0, IMAX_T, IMEAN_T, IMIN_E,
  IMAX_E, IMEAN_E, IMIN_S, IMAX_S,
  IMEAN_S, EMIN_T, EMAX_T, EMEAN_T,
  EMIN_E, EMAX_E, EMEAN_E, EMIN_S,
  EMAX_S, EMEAN_S
}
 

Functions

std::ostream & operator<< (std::ostream &ost, const Event &e)
 EVENT's stream operator. More...
 
std::istream & operator>> (std::istream &ist, Event &e)
 EVENT's stream operator. More...
 
static double Time ()
 Simple timer. More...
 
int Profane (int argc, char *argv[])
 The performance analysis post processor. More...
 
struct timeval operator- (const struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
struct timeval & operator-= (struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
struct timeval operator+ (const struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
struct timeval & operator+= (struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
bool operator== (const struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
bool operator!= (const struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
bool operator< (const timeval &t1, const timeval &t2)
 faster timeval math More...
 
bool operator> (const struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
bool operator<= (const struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
bool operator>= (const struct timeval &t1, const struct timeval &t2)
 faster timeval math More...
 
bool operator< (const std::pair< unsigned int, std::list< Event > > &p1, const std::pair< unsigned int, std::list< Event > > &p2)
 Event math. More...
 

Typedef Documentation

◆ ConfigMap

typedef std::map<unsigned int,std::string> ConfigMap

construct name to unique id.

Definition at line 363 of file Profiler.H.

◆ FunctionMap

typedef std::map< std::string, unsigned int > FunctionMap

construct name to unique id.

Definition at line 359 of file Profiler.H.

◆ PEventList

typedef std::list< std::pair< unsigned int, std::list< Event > > > PEventList

Definition at line 368 of file Profiler.H.

◆ PStatList

typedef std::list< std::pair< unsigned int, StatMap > > PStatList

Definition at line 365 of file Profiler.H.

◆ PStatMap

typedef std::map< unsigned int, parallel_stats > PStatMap

Definition at line 366 of file Profiler.H.

◆ ScalaMap

typedef std::map< unsigned int, PStatMap > ScalaMap

Definition at line 367 of file Profiler.H.

◆ ScalaStatMap

typedef std::map< unsigned int, scalability_stats > ScalaStatMap

Definition at line 370 of file Profiler.H.

◆ StatMap

typedef std::map< unsigned int, cumulative_stats > StatMap

Definition at line 364 of file Profiler.H.

◆ TestGlobalType

Definition at line 12 of file ProfilerTest.H.

◆ TestManagerType

Definition at line 11 of file ProfilerTest.H.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
IMIN_T 
IMAX_T 
IMEAN_T 
IMIN_E 
IMAX_E 
IMEAN_E 
IMIN_S 
IMAX_S 
IMEAN_S 
EMIN_T 
EMAX_T 
EMEAN_T 
EMIN_E 
EMAX_E 
EMEAN_E 
EMIN_S 
EMAX_S 
EMEAN_S 

Definition at line 898 of file Profiler.C.

Function Documentation

◆ operator!=()

bool ix::profiler::operator!= ( const struct timeval &  t1,
const struct timeval &  t2 
)
inline

faster timeval math

Definition at line 75 of file Profiler.C.

◆ operator+()

struct timeval ix::profiler::operator+ ( const struct timeval &  t1,
const struct timeval &  t2 
)

faster timeval math

Definition at line 42 of file Profiler.C.

◆ operator+=()

struct timeval& ix::profiler::operator+= ( struct timeval &  t1,
const struct timeval &  t2 
)

faster timeval math

Definition at line 54 of file Profiler.C.

◆ operator-()

struct timeval ix::profiler::operator- ( const struct timeval &  t1,
const struct timeval &  t2 
)

faster timeval math

Definition at line 19 of file Profiler.C.

◆ operator-=()

struct timeval& ix::profiler::operator-= ( struct timeval &  t1,
const struct timeval &  t2 
)

faster timeval math

Definition at line 31 of file Profiler.C.

◆ operator<() [1/2]

bool ix::profiler::operator< ( const timeval &  t1,
const timeval &  t2 
)
inline

faster timeval math

Definition at line 84 of file Profiler.C.

◆ operator<() [2/2]

bool ix::profiler::operator< ( const std::pair< unsigned int, std::list< Event > > &  p1,
const std::pair< unsigned int, std::list< Event > > &  p2 
)

Event math.

Definition at line 123 of file Profiler.C.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  ost,
const Event e 
)

EVENT's stream operator.

Output function for Event.

Definition at line 131 of file Profiler.C.

References Event::_exclusive, Event::_id, Event::_inclusive, and Event::_timestamp.

Referenced by Event::operator<().

Here is the caller graph for this function:

◆ operator<=()

bool ix::profiler::operator<= ( const struct timeval &  t1,
const struct timeval &  t2 
)
inline

faster timeval math

Definition at line 104 of file Profiler.C.

◆ operator==()

bool ix::profiler::operator== ( const struct timeval &  t1,
const struct timeval &  t2 
)
inline

faster timeval math

Definition at line 65 of file Profiler.C.

◆ operator>()

bool ix::profiler::operator> ( const struct timeval &  t1,
const struct timeval &  t2 
)
inline

faster timeval math

Definition at line 94 of file Profiler.C.

◆ operator>=()

bool ix::profiler::operator>= ( const struct timeval &  t1,
const struct timeval &  t2 
)
inline

faster timeval math

Definition at line 113 of file Profiler.C.

◆ operator>>()

std::istream & operator>> ( std::istream &  ist,
Event e 
)

EVENT's stream operator.

Input function for Event.

Definition at line 140 of file Profiler.C.

References Event::_exclusive, Event::_id, Event::_inclusive, and Event::_timestamp.

Referenced by Event::operator<().

Here is the caller graph for this function:

◆ Time()

static double ix::profiler::Time ( )
inlinestatic

Simple timer.

Time returns the time in seconds from the system time. The user is responsible for adding the appropriate offset to make this number relative to the current execution.

Definition at line 347 of file Profiler.H.

Referenced by rk4advancer< DomainType >::AXPY(), ProfilerObj::Finalize(), ProfilerObj::FunctionEntry(), ProfilerObj::FunctionExit(), ProfilerObj::FunctionExitAll(), ProfilerObj::Init(), rk4advancer< DomainType >::RKSum(), and testmanager::Test__BasicTimer().

Here is the caller graph for this function: