preCICE v3.1.2
|
contains profiling utilities. More...
Classes | |
struct | DataEntry |
class | Event |
class | EventRegistry |
struct | FundamentalTag |
Tag to annotate fundamental events. More... | |
struct | NameEntry |
class | ProfilingConfiguration |
Configuration class for exports. More... | |
class | ScopedEventPrefix |
Class that changes the prefix in its scope. More... | |
struct | StartEntry |
struct | StopEntry |
struct | SynchronizeTag |
Tag to annotate synchronized events. More... | |
struct | TimedEntry |
An event that has been recorded and it waiting to be written to file. More... | |
Typedefs | |
using | sys_clk = std::chrono::system_clock |
using | stdy_clk = std::chrono::steady_clock |
using | PendingEntry = std::variant<StartEntry, StopEntry, DataEntry, NameEntry> |
Enumerations | |
enum struct | Mode { All , Fundamental , Off } |
The Mode of the Event utility. More... | |
enum struct | EventClass : bool { Normal = false , Fundamental = true } |
Functions | |
void | applyDefaults () |
std::string | timepoint_to_string (sys_clk::time_point c) |
Converts the time_point into a string like "2019-01-10T18:30:46.834". | |
EventClass | toEventClass (bool isFundamental) |
Variables | |
constexpr int | DEFAULT_SYNC_EVERY = 50 |
constexpr const char * | DEFAULT_MODE = "fundamental" |
constexpr const char * | DEFAULT_DIRECTORY = "." |
constexpr const char * | MODE_OFF = "off" |
constexpr const char * | MODE_FUNDAMENTAL = "fundamental" |
constexpr const char * | MODE_ALL = "all" |
static constexpr FundamentalTag | Fundamental {} |
Convenience instance of the FundamentalTag. | |
static constexpr SynchronizeTag | Synchronize {} |
Convenience instance of the SynchronizeTag. | |
template<typename T > | |
static constexpr bool | isOptionsTag = std::is_same_v<T, FundamentalTag> || std::is_same_v<T, SynchronizeTag> |
contains profiling utilities.
Definition at line 71 of file EventUtils.hpp.
Definition at line 28 of file EventUtils.cpp.
Definition at line 27 of file EventUtils.cpp.
|
strong |
Enumerator | |
---|---|
Normal | |
Fundamental |
Definition at line 27 of file EventUtils.hpp.
|
strong |
The Mode of the Event utility.
Enumerator | |
---|---|
All | |
Fundamental | |
Off |
Definition at line 21 of file EventUtils.hpp.
void precice::profiling::applyDefaults | ( | ) |
std::string precice::profiling::timepoint_to_string | ( | sys_clk::time_point | c | ) |
Converts the time_point into a string like "2019-01-10T18:30:46.834".
Definition at line 31 of file EventUtils.cpp.
|
inline |
Definition at line 32 of file EventUtils.hpp.
|
constexpr |
Definition at line 16 of file ProfilingConfiguration.hpp.
|
constexpr |
Definition at line 15 of file ProfilingConfiguration.hpp.
|
constexpr |
Definition at line 14 of file ProfilingConfiguration.hpp.
|
staticconstexpr |
Convenience instance of the FundamentalTag.
|
staticconstexpr |
|
constexpr |
Definition at line 19 of file ProfilingConfiguration.hpp.
|
constexpr |
Definition at line 18 of file ProfilingConfiguration.hpp.
|
constexpr |
Definition at line 17 of file ProfilingConfiguration.hpp.
|
staticconstexpr |
Convenience instance of the SynchronizeTag.