|
MOAB: Mesh Oriented datABase
(version 5.4.1)
|
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] |
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.
| anonymous enum |
| 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
};
| moab::SpatialLocatorTimes::SpatialLocatorTimes | ( | ) | [inline] |
| void moab::SpatialLocatorTimes::output | ( | bool | print_head = false, |
| bool | print_endl = false |
||
| ) | const [inline] |
Definition at line 139 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 131 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;
}
| void moab::SpatialLocatorTimes::reset | ( | ) | [inline] |
Definition at line 82 of file SpatialLocatorTimes.hpp.
References NUM_STATS, and slTimes.
Referenced by SpatialLocatorTimes().
Definition at line 79 of file SpatialLocatorTimes.hpp.
Referenced by moab::SpatialLocator::locate_points(), output(), and reset().