Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::StallEventSourcePrivate Class Reference

StallEventSource's private part. More...

#include <stalleventsource_p.h>

Public Member Functions

QString startSampling ()
 Starts sampling this source's thread during stalls; call it on that thread.
void stopSampling ()
 Stops sampling.

Static Public Member Functions

static StallEventSourcePrivate * get (StallEventSource *source)
 The private part of source.

Public Attributes

std::chrono::milliseconds threshold { 1 }
 Smallest stall reported.
QTimer timer
 The 100 ms tick.
QElapsedTimer since
 Time since the previous tick.
std::function< bool()> inBackground
 Optional: whether the application is in the background.
std::shared_ptr< Detail::StackSampler > sampler
 Samples the stack during stalls while the server says so; shared with the server's app_status and app_stall_arm, which may run on another thread.

Detailed Description

StallEventSource's private part.

Member Function Documentation

◆ startSampling()

QString Sonde::StallEventSourcePrivate::startSampling ( )

Starts sampling this source's thread during stalls; call it on that thread.

Returns why it can't, or an empty string.


The documentation for this class was generated from the following files: