bactria
0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
|
Go to the documentation of this file.
84 bool autostart =
true)
85 :
Marker(std::move(name), color, std::move(category))
103 , m_started{other.m_started}
126 m_started = rhs.m_started;
146 :
Marker(std::move(other))
147 , m_handle{std::exchange(other.m_handle,
nullptr)}
148 , m_started{std::exchange(other.m_started,
bool{})}
165 m_handle = std::exchange(rhs.m_handle,
nullptr);
166 m_started = std::exchange(rhs.m_started,
bool{});
230 bool m_started{
false};
auto stop_range(void *range_handle) noexcept
Plugin-specific range stopping.
Definition: Plugin.hpp:299
Range()
The default constructor.
Definition: Range.hpp:63
auto operator=(Range const &rhs) -> Range &
The copy assignment operator.
Definition: Range.hpp:119
auto get_id() const noexcept -> std::uint32_t
The ID getter method.
Definition: Category.hpp:110
std::string m_name
The name assigned to the Marker.
Definition: Marker.hpp:177
The abstract base class for markers.
Definition: Marker.hpp:50
std::uint32_t m_color
The color assigned to the Marker.
Definition: Marker.hpp:185
auto activated() -> bool
Checks for an active metrics plugin.
Definition: Plugin.hpp:58
Range(Range &&other) noexcept
The move constructor.
Definition: Range.hpp:145
Defines a category.
Definition: Category.hpp:39
Range(Range const &other)
The copy constructor.
Definition: Range.hpp:101
auto start_range(void *range_handle) noexcept
Plugin-specific range starting.
Definition: Plugin.hpp:286
The range class.
Definition: Range.hpp:52
auto operator=(Range &&rhs) noexcept -> Range &
The move assignment operator.
Definition: Range.hpp:162
constexpr auto bactria_cyan
Definition: Colors.hpp:733
auto create_range(char const *name, std::uint32_t color, char const *cat_name, std::uint32_t cat_id) noexcept
Creates a plugin-specific range handle.
Definition: Plugin.hpp:254
Range(std::string name, std::uint32_t color=color::bactria_cyan, Category category=Category{}, bool autostart=true)
The constructor.
Definition: Range.hpp:80
auto destroy_range(void *range_handle) noexcept
Destroys a plugin-specific range handle.
Definition: Plugin.hpp:273
bactria-internal handling of ranges plugins.
Category m_category
The Category assigned to the Marker.
Definition: Marker.hpp:193
auto start() noexcept -> void
Manual start.
Definition: Range.hpp:192
auto stop() noexcept -> void
Manual stop.
Definition: Range.hpp:206
auto is_running() const noexcept -> bool
Query status.
Definition: Range.hpp:220
auto operator=(Marker const &rhs) -> Marker &=default
Copy-assignment operator.
auto get_c_name() const noexcept -> char const *
The C string name getter method.
Definition: Category.hpp:130
~Range() override
The destructor.
Definition: Range.hpp:178
Marker()=default
Default constructor.