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

A server with the state tools and a stalls source, and the stall events it reports. More...

Inheritance diagram for anonymous_namespace{test_stacksamples.cpp}::StackSamplesTest:

Protected Member Functions

void SetUp () override
 Installs the tools and the stalls source.
Event blockAndReport (int ms)
 Blocks the main thread for ms, then lets the stall be reported; returns the stall event, or an empty one.

Protected Attributes

Server server
 The server under test.
StallEventSource * stalls = nullptr
 Its stalls source (the server owns it).
QList< Event > events
 The stall events reported.
QString name
 The local socket's name.

Detailed Description

A server with the state tools and a stalls source, and the stall events it reports.

A block of B ms shows as a stall of B - 100 to B ms: the source measures how late its 100 ms tick is, and the block may begin anywhere between two ticks. The threshold leaves room for that on both sides.


The documentation for this class was generated from the following file:
  • tests/core/test_stacksamples.cpp