llarp::Profiling
Public Functions
| Name | |
|---|---|
| Profiling() | |
| bool | IsBad(const RouterID & r, uint64_t chances =profiling_chances) generic variant |
| bool | IsBadForPath(const RouterID & r, uint64_t chances =profiling_chances) check if this router should have paths built over it |
| bool | IsBadForConnect(const RouterID & r, uint64_t chances =profiling_chances) check if this router should be connected directly to |
| void | MarkConnectTimeout(const RouterID & r) |
| void | MarkConnectSuccess(const RouterID & r) |
| void | MarkPathTimeout(path::Path * p) |
| void | MarkPathFail(path::Path * p) |
| void | MarkPathSuccess(path::Path * p) |
| void | MarkHopFail(const RouterID & r) |
| void | ClearProfile(const RouterID & r) |
| void | Tick() |
| bool | Load(const fs::path fname) |
| bool | Save(const fs::path fname) |
| bool | ShouldSave(llarp_time_t now) const |
| void | Disable() |
| void | Enable() |
Public Attributes
| Name | |
|---|---|
| const int | profiling_chances |
Public Functions Documentation
function Profiling
Profiling()
function IsBad
bool IsBad(
const RouterID & r,
uint64_t chances =profiling_chances
)
generic variant
function IsBadForPath
bool IsBadForPath(
const RouterID & r,
uint64_t chances =profiling_chances
)
check if this router should have paths built over it
function IsBadForConnect
bool IsBadForConnect(
const RouterID & r,
uint64_t chances =profiling_chances
)
check if this router should be connected directly to
function MarkConnectTimeout
void MarkConnectTimeout(
const RouterID & r
)
function MarkConnectSuccess
void MarkConnectSuccess(
const RouterID & r
)
function MarkPathTimeout
void MarkPathTimeout(
path::Path * p
)
function MarkPathFail
void MarkPathFail(
path::Path * p
)
function MarkPathSuccess
void MarkPathSuccess(
path::Path * p
)
function MarkHopFail
void MarkHopFail(
const RouterID & r
)
function ClearProfile
void ClearProfile(
const RouterID & r
)
function Tick
void Tick()
function Load
bool Load(
const fs::path fname
)
function Save
bool Save(
const fs::path fname
)
function ShouldSave
bool ShouldSave(
llarp_time_t now
) const
function Disable
void Disable()
function Enable
void Enable()
Public Attributes Documentation
variable profiling_chances
static const int profiling_chances = 4;
Updated on 2026-01-10 at 22:49:45 +0000