25namespace shambase::profiling {
70 const SourceLocation &fileloc,
72 const std::optional<std::string> &name = std::nullopt,
73 const std::optional<std::string> &category_name = std::nullopt);
85 const SourceLocation &fileloc,
88 const std::optional<std::string> &name = std::nullopt,
89 const std::optional<std::string> &category_name = std::nullopt);
99 const SourceLocation &fileloc,
100 const std::optional<std::string> &name = std::nullopt,
101 const std::optional<std::string> &category_name = std::nullopt);
111 const SourceLocation &fileloc,
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 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 register_counter_val(const std::string &name, f64 time, f64 val)
Register a counter value.
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.