RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
Loading...
Searching...
No Matches
rpnx::querygraph::debug_abi::graph::options Struct Reference

Configure cumulative node self-time diagnostics. More...

#include <querygraph.hpp>

Public Attributes

bool enable_timing = true
 Collect node self-time and emit timing diagnostics when enabled.
 
std::chrono::nanoseconds long_running_node_threshold = std::chrono::milliseconds(100)
 Completion diagnostics require self-time greater than this duration.
 
std::chrono::nanoseconds long_running_progress_threshold = std::chrono::seconds(1)
 Progress diagnostics additionally require this much self-time. Progress is checked after coroutine resumptions, including suspensions.
 
std::function< void(std::string const &) > timing_logger
 Receive complete timing messages, including a trailing newline. The default writes to standard error. An empty function suppresses timing messages. Calls are serialized per graph on scheduler worker threads. The callback must not throw or execute requests using the same scheduler. The message reference is valid during the call.
 

Detailed Description

Configure cumulative node self-time diagnostics.

Definition at line 1054 of file querygraph.hpp.

Member Data Documentation

◆ enable_timing

bool rpnx::querygraph::debug_abi::graph::options::enable_timing = true

Collect node self-time and emit timing diagnostics when enabled.

Definition at line 1057 of file querygraph.hpp.

◆ long_running_node_threshold

std::chrono::nanoseconds rpnx::querygraph::debug_abi::graph::options::long_running_node_threshold = std::chrono::milliseconds(100)

Completion diagnostics require self-time greater than this duration.

Definition at line 1059 of file querygraph.hpp.

◆ long_running_progress_threshold

std::chrono::nanoseconds rpnx::querygraph::debug_abi::graph::options::long_running_progress_threshold = std::chrono::seconds(1)

Progress diagnostics additionally require this much self-time. Progress is checked after coroutine resumptions, including suspensions.

Definition at line 1064 of file querygraph.hpp.

◆ timing_logger

std::function< void(std::string const&) > rpnx::querygraph::debug_abi::graph::options::timing_logger
Initial value:
= [](std::string const& message)
{
std::cerr << message;
}

Receive complete timing messages, including a trailing newline. The default writes to standard error. An empty function suppresses timing messages. Calls are serialized per graph on scheduler worker threads. The callback must not throw or execute requests using the same scheduler. The message reference is valid during the call.

Definition at line 1072 of file querygraph.hpp.


The documentation for this struct was generated from the following file: