7#include "../utility/utility.hpp"
8#include "../time/time.hpp"
10#include "../macros.hpp"
15hi_export_module(hikogui.telemetry : trace);
33 virtual void log()
const noexcept = 0;
36 inline static thread_local trace_base *_top =
nullptr;
42template<fixed_
string Tag>
49 if (std::uncaught_exceptions()) {
54 global_counter<Tag>.add_duration(current_time_stamp.count() - _time_stamp.count());
57 void log()
const noexcept override
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
Since Window's 10 QueryPerformanceCounter() counts at only 10MHz which is too low to measure performa...
Definition time_stamp_count.hpp:36
Definition time_stamp_count.hpp:38