preCICE v3.3.0
|
contains profiling utilities. More...
Classes | |
struct | DataEntry |
class | Event |
class | EventRegistry |
struct | NameEntry |
class | ProfilingConfiguration |
Configuration class for exports. 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 | Group { Default , Fundamental , API } |
Tag to annotate event group. More... | |
enum struct | Mode { All , API , 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". |
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_API = "api" |
constexpr const char * | MODE_ALL = "all" |
static constexpr Group | Fundamental = Group::Fundamental |
Convenience instance of the Cat::Fundamental. | |
static constexpr Group | API = Group::API |
Convenience instance of the Cat::API. | |
static constexpr SynchronizeTag | Synchronize {} |
Convenience instance of the SynchronizeTag. | |
template<typename T> | |
static constexpr bool | isOptionsTag = std::is_same_v<T, Group> || std::is_same_v<T, SynchronizeTag> |
constexpr int | file_version {2} |
The version of the Events file. Increase on changes. |
contains profiling utilities.
Definition at line 71 of file EventUtils.hpp.
Definition at line 36 of file EventUtils.cpp.
Definition at line 35 of file EventUtils.cpp.
|
strong |
Enumerator | |
---|---|
Normal | |
Fundamental |
Definition at line 32 of file EventUtils.hpp.
|
strong |
|
strong |
The Mode of the Event utility.
Enumerator | |
---|---|
All | |
API | |
Fundamental | |
Off |
Definition at line 25 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 39 of file EventUtils.cpp.
|
staticconstexpr |
|
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.
|
constexpr |
The version of the Events file. Increase on changes.
Definition at line 33 of file EventUtils.cpp.
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
Definition at line 20 of file ProfilingConfiguration.hpp.
|
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.