#include <AMReX_BLProfStats.H>
Classes | |
struct | BLPDataBlock |
struct | CallTreeNode |
struct | FuncStat |
struct | TimeRange |
struct | TimeRangeCompare |
Public Types | |
enum | FilterStatus { UNDEFINED , ON , OFF , INCLUDEALL , INCLUDENONE } |
Public Member Functions | |
BLProfStats () | |
~BLProfStats () | |
void | AddRegionName (const std::string &rname, int rnumber) |
std::set< int > | WhichRegions (int proc, Real t) |
void | SetProc (int p) |
int | GetProc () const |
void | SetMaxRNumber (int n) |
int | GetMaxRNumber () const |
void | InitFilterTimeRanges () |
void | SetFilterTimeRanges (const amrex::Vector< std::list< TimeRange > > &ftr) |
const amrex::Vector< std::list< TimeRange > > & | GetFilterTimeRanges () const |
void | SetRegionTimeRanges (const amrex::Vector< amrex::Vector< amrex::Vector< TimeRange > > > &rtr) |
void | SetRegionTimeRanges (const TimeRange &tr, const int n, const int r, const int t) |
const amrex::Vector< amrex::Vector< amrex::Vector< TimeRange > > > & | GetRegionTimeRanges () |
const std::map< std::string, int > & | RegionNames () |
const std::map< int, std::string > & | RegionNumbers () |
const std::map< int, std::string > & | BarrierNumbersToNames () |
void | MakeFilterFile (const std::string &ffname) |
void | SetFilter (FilterStatus fs, const std::string &rname, int rnumber) |
void | SetFilter (FilterStatus fs) |
virtual void | SetBLPVersion (const int blpv) |
virtual void | AddFunctionName (const std::string &fname) |
virtual void | InitBLProfDataBlock (const int proc, const std::string &filename, const long seekpos) |
virtual void | CollectFuncStats (amrex::Vector< amrex::Vector< FuncStat > > &funcStats) |
virtual void | WriteSummary (std::ostream &ios, bool bwriteavg=false, int whichProc=0, bool graphTopPct=true) |
virtual void | AddCalcEndTime (double cet) |
virtual void | SetCPVersion (const int) |
virtual void | SetCSSize (const int) |
virtual void | InitCommDataBlock (const int, const long, const std::string &, const long, const std::string &="", const int=-1) |
virtual void | AddBarrier (long, const std::string &, long) |
virtual void | AddReduction (const long, const long) |
virtual void | AddTimeMinMax (const double, const double) |
virtual void | AddTimerTime (const double) |
virtual void | AddNameTag (const long, const long) |
virtual void | AddNameTagName (const std::string &) |
virtual void | AddTagRange (const long, const long) |
virtual void | AddGridLevel (const int, const int) |
virtual void | AddGrid3D (int, int, int, int, int, int, int, int, int, int, int, int, int, int) |
virtual void | AddFinestLevel (const int) |
virtual void | AddMaxLevel (const int) |
virtual void | AddRefRatio (const int, const amrex::IntVect &) |
virtual void | AddTopoCoord (const int, const int, const int, const int, const int, const bool=false) |
virtual void | AddCommHeaderFileName (const std::string &) |
virtual void | SetCSVersion (int) |
virtual void | AddCStatsHeaderFileName (const std::string &) |
virtual void | AddFunctionName (const std::string &, int) |
virtual void | InitCStatsDataBlock (int, long, long, const std::string &, long) |
virtual void | AddProbDomain (const int, const amrex::Box &) |
virtual TimeRange | MakeRegionPlt (amrex::FArrayBox &, int, int, int, amrex::Vector< amrex::Vector< amrex::Box >> &) |
virtual void | AddEdisonPID (int, int, int, int, int, int, int, int, int) |
void | CheckData () |
const amrex::Vector< std::string > & | BLPFNames () |
void | SetFNames (const amrex::Vector< std::string > &fNames) |
Static Public Member Functions | |
static int | Verbose () |
static void | SetVerbose (int vlevel=0) |
static void | SetDirName (const std::string &dirname) |
static void | SetNOutFiles (const int nof) |
static int | GetNOutFiles () |
static void | SetNProcs (int p) |
static int | GetNProcs () |
static bool | AddPiece (std::list< TimeRange > &addToHere, const TimeRange &pieceToAdd) |
static std::list< TimeRange > | RangeIntersection (std::list< TimeRange > &rangeList, const TimeRange &pieceToIntersect) |
static bool | RemovePiece (std::list< TimeRange > &removeFromHere, const TimeRange &pieceToRemove) |
static void | SetInitDataBlocks (bool b) |
static bool | InitDBlocks () |
static void | SetGPercent (Real p) |
static void | OpenAllStreams (const std::string &dirname) |
static void | CloseAllStreams () |
static bool | TimeRangeInitialized () |
Protected Member Functions | |
bool | InTimeRange (int proc, Real calltime) |
Protected Attributes | |
int | maxRNumber |
int | currentProc |
int | currentDataBlock |
Real | calcEndTime |
Real | minRegionTime |
Real | maxRegionTime |
std::map< std::string, int > | regionNames |
std::map< int, std::string > | regionNumbers |
std::map< int, std::string > | barrierNumbersToNames |
std::set< int > | includeSet |
std::set< int > | excludeSet |
bool | bDefaultInclude |
amrex::Vector< amrex::Vector< amrex::Vector< TimeRange > > > | regionTimeRanges |
amrex::Vector< std::list< TimeRange > > | filterTimeRanges |
amrex::Vector< std::string > | blpFNames |
amrex::Vector< BLPDataBlock > | blpDataBlocks |
Static Protected Attributes | |
static int | verbose |
static int | blProfVersion |
static int | dataNProcs |
static int | nOutFiles |
static std::string | dirName |
static bool | bInitDataBlocks |
static bool | bTimeRangeInitialized |
static std::map< std::string, int > | blpDataFileNames |
static Real | gPercent |
static amrex::Vector< std::ifstream * > | blpDataStreams |
Private Member Functions | |
void | ReadBlock (BLPDataBlock &dBlock) |
void | ReadBlockNoOpen (BLPDataBlock &dBlock) |
void | ClearBlock (BLPDataBlock &dBlock) |
Friends | |
int | yyparse (void *) |
BLProfStats::BLProfStats | ( | ) |
BLProfStats::~BLProfStats | ( | ) |
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in RegionsProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in RegionsProfStats.
|
virtual |
Reimplemented in RegionsProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
static |
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
void BLProfStats::AddRegionName | ( | const std::string & | rname, |
int | rnumber | ||
) |
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in RegionsProfStats, and CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inline |
|
inline |
void BLProfStats::CheckData | ( | ) |
|
private |
|
static |
|
virtual |
Reimplemented in RegionsProfStats.
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
virtual |
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in RegionsProfStats.
|
inlinestatic |
void BLProfStats::InitFilterTimeRanges | ( | ) |
|
protected |
void BLProfStats::MakeFilterFile | ( | const std::string & | ffname | ) |
|
inlinevirtual |
Reimplemented in RegionsProfStats.
|
static |
|
static |
|
private |
|
private |
|
inline |
|
inline |
|
static |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in CommProfStats.
|
inlinevirtual |
Reimplemented in RegionsProfStats.
|
inlinestatic |
void BLProfStats::SetFilter | ( | BLProfStats::FilterStatus | fs | ) |
void BLProfStats::SetFilter | ( | BLProfStats::FilterStatus | fs, |
const std::string & | rname, | ||
int | rnumber | ||
) |
void BLProfStats::SetFilterTimeRanges | ( | const amrex::Vector< std::list< TimeRange > > & | ftr | ) |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
std::set< int > BLProfStats::WhichRegions | ( | int | proc, |
Real | t | ||
) |
|
virtual |
Reimplemented in RegionsProfStats.
|
friend |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
staticprotected |