moab
moab::SpatialLocatorTimes Class Reference

Statistics for spatial location. More...

#include <SpatialLocatorTimes.hpp>

List of all members.

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 63 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.

{reset();}

Member Function Documentation

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

Definition at line 125 of file SpatialLocatorTimes.hpp.

{
  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 117 of file SpatialLocatorTimes.hpp.

{
  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 76 of file SpatialLocatorTimes.hpp.

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

Member Data Documentation


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