#include <unistd.h>#include <sys/types.h>#include <spdlog/spdlog.h>#include <nlohmann/json.hpp>#include "attributes/common.hpp"#include "static_string.hpp"Go to the source code of this file.
Namespaces | |
| namespace | ein |
| namespace | ein::profiling |
Functions | |
| template<typename Duration , typename Clock > | |
| void | ein::profiling::to_json (nlohmann::json &j, const profile_event< Duration, Clock > &t) |
| template<typename Mutex , typename Duration , typename Clock > | |
| void | ein::profiling::to_json (nlohmann::json &j, profile< Mutex, Duration, Clock > const &p) noexcept |
| void | ein::profiling::make_args (nlohmann::json &) noexcept |
| template<typename K , typename V , typename ... Args> | |
| void | ein::profiling::make_args (nlohmann::json &j, K &&k, V &&v, Args &&... args) |
Variables | |
| template<typename T > | |
| static constexpr char const * | ein::profiling::duration_suffix |
Definition in file profiling.hpp.
| struct ein::profiling::profile_event |
Definition at line 80 of file profiling.hpp.
| Class Members | ||
|---|---|---|
| typedef Clock | clock Clock | |
| typedef Duration | duration Duration | |
| Class Members | ||
|---|---|---|
| json | args {} | |
| static_c_string | bp {} | |
| static_c_string | cat {} | |
| optional< string > | id {} | |
| static_c_string | name {} | |
| event_type | ph | |
| pid_t | pid = getpid() | |
| scope | s | |
| size_t | tid = std::hash<std::thread::id>{}(std::this_thread::get_id()) | |
| size_t | ts = std::chrono::duration_cast<duration>(clock::now().time_since_epoch()).count() | |