#include <winstd.H>
#include <cstdio>
#include <cctype>
#include <cassert>
#include <cmath>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <map>
#include <algorithm>
#include <vector>
#include <stack>
#include <limits>
#include <Profiler.H>
#include <Thread.H>
#include <ParallelDescriptor.H>
#include <ParmParse.H>
Functions | |
void | spacer (std::ostream &os, int n, char c= ' ') |
void | show_name_field (std::ostream &, int level, const std::string &str) |
void | show_time_count (std::ostream &, int wd, double acc, int cnt) |
void | show_time (std::ostream &os, double time, int scale=1000) |
void | show_count (std::ostream &os, int count) |
void | aggregate_field_title (std::ostream &os) |
std::ostream & | operator<< (std::ostream &os, const timer_packet &tp) |
void | grovel (const ThreadTimerNode *nodes, const std::string &str, timer_packet &t) |
std::string | filename ("bl_prof") |
void | mma_dump () |
void | show_time_count (std::ostream &os, int wd, double time, int count) |
void | show_time (std::ostream &os, double time, int scale) |
void | show_count (std::ostream &os, int count) |
void | show_name_field (std::ostream &os, int level, const std::string &str) |
void | aggregate_field_title (std::ostream &os) |
Variables | |
std::map< std::string, int > | tagr |
std::map< int, std::string > | inv_tagr |
Mutex | profiling_mutex |
const int | spcmult = 2 |
const int | name_field_width = 40 |
const int | name_field_bumper = 2 |
const int | name_field_ellipse = 3 |
const int | timer_field_width = 24 |
const int | time_field_width = 14 |
const int | count_field_width = 8 |
ThreadSpecificData< int > | tt_i |
Mutex | tt_mutex |
std::vector< ThreadTimerTree * > | tt_data |
bool | verbose = false |
bool | mma = false |
void @11::aggregate_field_title | ( | std::ostream & | os | ) | [static] |
References count_field_width, name_field_width, spacer(), and time_field_width.
void @11::aggregate_field_title | ( | std::ostream & | os | ) | [static] |
std::string @11::filename | ( | "bl_prof" | ) | [static] |
Referenced by Profiler::Initialize(), and mma_dump().
void grovel | ( | const ThreadTimerNode * | nodes, | |
const std::string & | str, | |||
timer_packet & | t | |||
) |
References BoxLib::max(), and BoxLib::min().
void @11::mma_dump | ( | ) | [static] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const timer_packet & | tp | |||
) |
References show_count(), show_name_field(), and show_time().
void @11::show_count | ( | std::ostream & | os, | |
int | count | |||
) | [static] |
References count_field_width.
void @11::show_count | ( | std::ostream & | os, | |
int | count | |||
) | [static] |
Referenced by operator<<().
void @11::show_name_field | ( | std::ostream & | os, | |
int | level, | |||
const std::string & | str | |||
) | [static] |
References name_field_bumper, name_field_ellipse, name_field_width, spacer(), and spcmult.
void @11::show_name_field | ( | std::ostream & | , | |
int | level, | |||
const std::string & | str | |||
) | [static] |
Referenced by operator<<().
void @11::show_time | ( | std::ostream & | os, | |
double | time, | |||
int | scale | |||
) | [static] |
References time_field_width.
void @11::show_time | ( | std::ostream & | os, | |
double | time, | |||
int | scale = 1000 | |||
) | [static] |
Referenced by operator<<().
void @11::show_time_count | ( | std::ostream & | os, | |
int | wd, | |||
double | time, | |||
int | count | |||
) | [static] |
void @11::show_time_count | ( | std::ostream & | , | |
int | wd, | |||
double | acc, | |||
int | cnt | |||
) | [static] |
void @11::spacer | ( | std::ostream & | os, | |
int | n, | |||
char | c = ' ' | |||
) | [static] |
Referenced by aggregate_field_title(), and show_name_field().
const int count_field_width = 8 [static] |
Referenced by aggregate_field_title(), and show_count().
std::map<int, std::string> inv_tagr [static] |
Referenced by Profiler::Tag::Tag().
bool mma = false [static] |
Referenced by Profiler::Initialize().
const int name_field_bumper = 2 [static] |
Referenced by show_name_field().
const int name_field_ellipse = 3 [static] |
Referenced by show_name_field().
const int name_field_width = 40 [static] |
Referenced by aggregate_field_title(), and show_name_field().
Mutex profiling_mutex [static] |
Referenced by Profiler::is_profiling(), Profiler::off(), Profiler::on(), and Profiler::Tag::Tag().
const int spcmult = 2 [static] |
Referenced by show_name_field().
std::map<std::string, int> tagr [static] |
Referenced by Profiler::Tag::Tag().
const int time_field_width = 14 [static] |
Referenced by aggregate_field_title(), and show_time().
const int timer_field_width = 24 [static] |
std::vector<ThreadTimerTree*> tt_data [static] |
Referenced by mma_dump(), Profiler::Profiler(), Profiler::start(), and Profiler::stop().
ThreadSpecificData<int> tt_i [static] |
Referenced by Profiler::Profiler(), Profiler::start(), and Profiler::stop().
Referenced by Profiler::Profiler().
bool verbose = false [static] |
Referenced by Profiler::Initialize().