Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{signaltrace.cpp} Namespace Reference

Classes

class  SlotMetaObject
 A meta-object with one slot for each traced signal of a class, built at runtime. More...
class  TraceHandler
 Connects every traced signal of one object, and follows its children. More...
struct  TraceRow
 What a trace counted for one signal of one object. More...
struct  TraceSummary
 What a trace leaves behind: its summary, as text and as JSON. More...
struct  TraceOptions
 How a trace is set up: the signal_trace_start arguments. More...
class  Trace
 One running trace: its handlers, counts and timer. More...
struct  Traces
 The traces: running ones, and the summaries of recent ones. More...

Functions

constexpr QLatin1StringView kSourceName ("signals")
 Name of the event source the emissions go to (shared with signal_watch).
QString compile (const QJsonObject &args, const QString &name, QRegularExpression *out)
 Compiles pattern for option name.
ToolResult signalTrace (Server &server, const std::shared_ptr< Traces > &traces, const QJsonObject &args)
 The signal_trace_start tool.
ToolResult signalTraceStop (const std::shared_ptr< Traces > &traces, const QJsonObject &args)
 The signal_trace_stop tool.

Variables

constexpr int kMaxTraces = 4
 Most traces active at once.
constexpr int kMaxObjects = 2000
 Most objects in one trace.
constexpr int kMaxConnections = 20000
 Most signal connections in one trace.
constexpr int kMaxRecorded = 500
 Most emissions of one trace recorded as events.
constexpr int kDefaultDurationMs = 5000
 How long a trace lasts by default.
constexpr int kMaxDurationMs = 60000
 Longest a trace can last.
constexpr int kMaxSummaryRows = 200
 Most (object, signal) rows in a summary.
constexpr int kKeptEnded = 8
 Summaries of ended traces kept for signal_trace_stop.

Function Documentation

◆ compile()

QString Sonde::anonymous_namespace{signaltrace.cpp}::compile ( const QJsonObject & args,
const QString & name,
QRegularExpression * out )

Compiles pattern for option name.

Returns
An error message, or nothing.