|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
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. | |
StallEventSource's private part.
| 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.