bactria  0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
PluginInterface.hpp File Reference

Interface for plugin developers. More...

#include <cstdint>
Include dependency graph for PluginInterface.hpp:

Go to the source code of this file.

Functions

auto bactria_metrics_create_sector (char const *name, std::uint32_t type) noexcept -> void *
 Creates a sector handle. More...
 
auto bactria_metrics_destroy_sector (void *sector_handle) noexcept -> void
 Destroys a sector handle. More...
 
auto bactria_metrics_enter_sector (void *sector_handle, char const *source, std::uint32_t lineno, char const *caller) noexcept -> void
 Enter a sector. More...
 
auto bactria_metrics_leave_sector (void *sector_handle, char const *source, std::uint32_t lineno, char const *caller) noexcept -> void
 Leave a sector. More...
 
auto bactria_metrics_sector_summary (void *sector_handle) noexcept -> void
 Summarize a sector. More...
 
auto bactria_metrics_create_phase (char const *name) noexcept -> void *
 Create a phase handle. More...
 
auto bactria_metrics_destroy_phase (void *phase_handle) noexcept -> void
 Destroy a phase handle. More...
 
auto bactria_metrics_enter_phase (void *phase_handle, char const *source, std::uint32_t lineno, char const *caller) noexcept -> void
 Enter a phase. More...
 
auto bactria_metrics_leave_phase (void *phase_handle, char const *source, std::uint32_t lineno, char const *caller) noexcept -> void
 Leave a phase. More...
 

Detailed Description

Interface for plugin developers.

This is bactria's metrics plugin interface. Plugin developers should include this file and implement all functions declared by it.