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_reports_create_report (char const *name) -> void *
 Creates a plugin-specific report handle. More...
 
auto bactria_reports_destroy_report (void *report_handle) noexcept -> void
 Destroys a plugin-specific report handle. More...
 
auto bactria_reports_write_report (void *report_handle) -> void
 Writes a report to disk (or other data sinks). More...
 
auto bactria_reports_record_bool (void *report_handle, char const *key, bool value) -> void
 Adds a boolean value to the report. More...
 
auto bactria_reports_record_int8 (void *report_handle, char const *key, std::int8_t value) -> void
 Adds a int8_t value to the report. More...
 
auto bactria_reports_record_uint8 (void *report_handle, char const *key, std::uint8_t value) -> void
 Adds a uint8_t value to the report. More...
 
auto bactria_reports_record_int16 (void *report_handle, char const *key, std::int16_t value) -> void
 Adds a int16_t value to the report. More...
 
auto bactria_reports_record_uint16 (void *report_handle, char const *key, std::uint16_t value) -> void
 Adds a uint16_t value to the report. More...
 
auto bactria_reports_record_int32 (void *report_handle, char const *key, std::int16_t value) -> void
 Adds a int32_t value to the report. More...
 
auto bactria_reports_record_uint32 (void *report_handle, char const *key, std::uint16_t value) -> void
 Adds a uint32_t value to the report. More...
 
auto bactria_reports_record_int64 (void *report_handle, char const *key, std::int64_t value) -> void
 Adds a int64_t value to the report. More...
 
auto bactria_reports_record_uint64 (void *report_handle, char const *key, std::uint64_t value) -> void
 Adds a uint64_t value to the report. More...
 
auto bactria_reports_record_float (void *report_handle, char const *key, float value) -> void
 Adds a float value to the report. More...
 
auto bactria_reports_record_double (void *report_handle, char const *key, double value) -> void
 Adds a double value to the report. More...
 
auto bactria_reports_record_string (void *report_handle, char const *key, char const *value) -> void
 Adds a string value to the report. More...
 

Detailed Description

Interface for plugin developers.

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