bactria  0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
PluginInterface.hpp
Go to the documentation of this file.
1 /* Copyright 2021 Jan Stephan
2  *
3  * Licensed under the EUPL, Version 1.2 or - as soon they will be approved by
4  * the European Commission - subsequent versions of the EUPL (the “Licence”).
5  * You may not use this work except in compliance with the Licence.
6  * You may obtain a copy of the Licence at:
7  *
8  * http://ec.europa.eu/idabc/eupl.html
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the Licence is distributed on an “AS IS” basis, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * Licence permissions and limitations under the Licence.
14  */
15 
24 #pragma once
25 
26 #include <cstdint>
27 
37 extern "C"
38 {
51  auto bactria_ranges_create_event(std::uint32_t color, char const* cat_name, std::uint32_t cat_id) noexcept
52  -> void*;
53 
64  auto bactria_ranges_destroy_event(void* event_handle) noexcept -> void;
65 
79  void* event_handle,
80  char const* event_name,
81  char const* source,
82  std::uint32_t lineno,
83  char const* caller) noexcept -> void;
84 
99  char const* name,
100  std::uint32_t color,
101  char const* cat_name,
102  std::uint32_t cat_id) noexcept -> void*;
103 
114  auto bactria_ranges_destroy_range(void* range_handle) noexcept -> void;
115 
124  auto bactria_ranges_start_range(void* range_handle) noexcept -> void;
125 
134  auto bactria_ranges_stop_range(void* range_handle) noexcept -> void;
135 }
136 
bactria_ranges_destroy_range
auto bactria_ranges_destroy_range(void *range_handle) noexcept -> void
Destroy a range handle.
bactria_ranges_destroy_event
auto bactria_ranges_destroy_event(void *event_handle) noexcept -> void
Destroy an event handle.
bactria_ranges_start_range
auto bactria_ranges_start_range(void *range_handle) noexcept -> void
Start a range.
bactria_ranges_create_range
auto bactria_ranges_create_range(char const *name, std::uint32_t color, char const *cat_name, std::uint32_t cat_id) noexcept -> void *
Create a range handle.
bactria_ranges_stop_range
auto bactria_ranges_stop_range(void *range_handle) noexcept -> void
Stop a range.
bactria_ranges_fire_event
auto bactria_ranges_fire_event(void *event_handle, char const *event_name, char const *source, std::uint32_t lineno, char const *caller) noexcept -> void
Fire an event.
bactria_ranges_create_event
auto bactria_ranges_create_event(std::uint32_t color, char const *cat_name, std::uint32_t cat_id) noexcept -> void *
Create an event handle.