25namespace shambase::profiling {
72 const std::optional<std::string> &name = std::nullopt,
73 const std::optional<std::string> &category_name = std::nullopt);
88 const std::optional<std::string> &name = std::nullopt,
89 const std::optional<std::string> &category_name = std::nullopt);
100 const std::optional<std::string> &name = std::nullopt,
101 const std::optional<std::string> &category_name = std::nullopt);
112 const std::optional<std::string> &name = std::nullopt,
113 const std::optional<std::string> &category_name = std::nullopt);
double f64
Alias for double.
void register_counter_val(u64 pid, f64 t, const std::string &name, f64 val)
Register a counter value in Chrome tracing.
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
void set_use_complete_event(bool use_complete_event)
Use complete event, or start and begin event in chrome tracing.
void set_event_record_threshold(f64 threshold)
Set the event record threshold.
bool is_profiling_enabled()
Check if profiling is enabled.
void stack_entry_start_no_time(const SourceLocation &fileloc, const std::optional< std::string > &name=std::nullopt, const std::optional< std::string > &category_name=std::nullopt)
Start a profiling event without a time info.
void set_enable_profiling(bool enable_profiling)
Set wether to enable profiling.
void set_enable_nvtx(bool enable_nvtx)
Set wether to enable NVTX profiling.
void stack_entry_end_no_time(const SourceLocation &fileloc, const std::optional< std::string > &name=std::nullopt, const std::optional< std::string > &category_name=std::nullopt)
End a profiling event without a time info.
void stack_entry_start(const SourceLocation &fileloc, f64 t_start, const std::optional< std::string > &name=std::nullopt, const std::optional< std::string > &category_name=std::nullopt)
Register the start of a profiling event.
void stack_entry_end(const SourceLocation &fileloc, f64 t_start, f64 tend, const std::optional< std::string > &name=std::nullopt, const std::optional< std::string > &category_name=std::nullopt)
Register the end of a profiling event.
provide information about the source location