Lightgraph
C++17 light-graph engine API reference
Loading...
Searching...
No Matches
observability.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "lightgraph/internal/Globals.h"
4
#include "
lightgraph/internal/topology.hpp
"
5
11
namespace
lightgraph::integration
{
12
13
using
AllocationFailureSite
= ::LightgraphAllocationFailureSite;
14
using
AllocationFailureObserver
= ::LightgraphAllocationFailureObserver;
15
16
inline
void
setAllocationFailureObserver
(
AllocationFailureObserver
observer) {
17
::lightgraphSetAllocationFailureObserver(observer);
18
}
19
20
inline
void
setAllocationFailureObserver
(::TopologyObject&
object
,
AllocationFailureObserver
observer) {
21
::lightgraphSetAllocationFailureObserver(
object
.runtimeContext(), observer);
22
}
23
24
inline
void
reportAllocationFailure
(
AllocationFailureSite
site, uint16_t detail0 = 0, uint16_t detail1 = 0) {
25
::lightgraphReportAllocationFailure(site, detail0, detail1);
26
}
27
28
inline
void
reportAllocationFailure
(::TopologyObject&
object
,
29
AllocationFailureSite
site,
30
uint16_t detail0 = 0,
31
uint16_t detail1 = 0) {
32
::lightgraphReportAllocationFailure(
object
.runtimeContext(), site, detail0, detail1);
33
}
34
35
}
// namespace lightgraph::integration
topology.hpp
lightgraph::integration
Definition
codecs.hpp:11
lightgraph::integration::AllocationFailureSite
::LightgraphAllocationFailureSite AllocationFailureSite
Definition
observability.hpp:13
lightgraph::integration::setAllocationFailureObserver
void setAllocationFailureObserver(AllocationFailureObserver observer)
Definition
observability.hpp:16
lightgraph::integration::reportAllocationFailure
void reportAllocationFailure(AllocationFailureSite site, uint16_t detail0=0, uint16_t detail1=0)
Definition
observability.hpp:24
lightgraph::integration::AllocationFailureObserver
::LightgraphAllocationFailureObserver AllocationFailureObserver
Definition
observability.hpp:14
include
lightgraph
integration
observability.hpp
Generated by
1.9.8