MOAB: Mesh Oriented datABase  (version 5.3.1)
moab::SpatialLocatorTimes Class Reference

Statistics for spatial location. More...

#include <SpatialLocatorTimes.hpp>

Public Types

enum  {
  INTMED_INIT = 0, INTMED_SEND, INTMED_SEARCH, SRC_SEND,
  SRC_SEARCH, TARG_RETURN, TARG_STORE, NUM_STATS
}

Public Member Functions

 SpatialLocatorTimes ()
void reset ()
void output_header (bool print_endl=false) const
void output (bool print_head=false, bool print_endl=false) const

Public Attributes

double slTimes [NUM_STATS]

Detailed Description

Statistics for spatial location.

Class to accumulate statistics on performance of spatial location. This structure stores only local (single proc) statistics, but provides functions for accumulating max/min/avg time properties for performance reporting.

Similar to TreeStats, this class is very lightweight, with most variables publicly accessible.

Definition at line 26 of file SpatialLocatorTimes.hpp.


Member Enumeration Documentation

anonymous enum
Enumerator:
INTMED_INIT 
INTMED_SEND 
INTMED_SEARCH 
SRC_SEND 
SRC_SEARCH 
TARG_RETURN 
TARG_STORE 
NUM_STATS 

Definition at line 67 of file SpatialLocatorTimes.hpp.

    {
        INTMED_INIT = 0,  // time to compute intermediate partition, incl global bounding box
        INTMED_SEND,      // time to send search points from target to intermediate parts
        INTMED_SEARCH,    // time to find candidate src boxes for search points on intermidiate procs
        SRC_SEND,         // time to send search points to src procs
        SRC_SEARCH,       // time to search local box/elements on src procs
        TARG_RETURN,      // time to return point location data to target procs
        TARG_STORE,       // time to store point location into local SpatialLocator object
        NUM_STATS         // number of stats, useful for array sizing and terminating loops over stats
    };

Constructor & Destructor Documentation

Definition at line 31 of file SpatialLocatorTimes.hpp.

References reset().

    {
        reset();
    }

Member Function Documentation

void moab::SpatialLocatorTimes::output ( bool  print_head = false,
bool  print_endl = false 
) const [inline]

Definition at line 137 of file SpatialLocatorTimes.hpp.

References NUM_STATS, output_header(), and slTimes.

{
    if( print_head ) output_header( true );
    for( int i = 0; i < NUM_STATS; i++ )
        std::cout << slTimes[i] << " ";

    if( print_endl ) std::cout << std::endl;
}
void moab::SpatialLocatorTimes::output_header ( bool  print_endl = false) const [inline]

Definition at line 129 of file SpatialLocatorTimes.hpp.

Referenced by output().

{
    std::cout << "Intmed_init Intmed_send Intmed_search src_send src_search targ_return targ_store";
    if( print_endl ) std::cout << std::endl;
}

Definition at line 82 of file SpatialLocatorTimes.hpp.

References NUM_STATS, and slTimes.

Referenced by SpatialLocatorTimes().

{
    for( int i = 0; i < NUM_STATS; i++ )
        slTimes[i] = 0.0;
}

Member Data Documentation

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines