Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
stackcapture.cpp File Reference

Private: Sonde::Detail::StackCapture, FrameNamer and formatSamples() (design 0016). More...

#include "stackcapture_p.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QFileInfo>
#include <QtCore/QStringList>
#include <atomic>
#include <cstring>

Classes

struct  Sonde::Detail::anonymous_namespace{stackcapture.cpp}::ModuleFacts
 What is known about the module that contains an address. More...
struct  Sonde::Detail::anonymous_namespace{stackcapture.cpp}::FrameFacts
 A frame's certain name, and its source file and line when known. More...

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

QString Sonde::Detail::anonymous_namespace{stackcapture.cpp}::hex (quintptr value)
 value as "0x..." in lower case.
quintptr Sonde::Detail::anonymous_namespace{stackcapture.cpp}::lookupAddress (const RawStack &stack, int index)
 The address to look up for frame index: a return address points after its call, so the call is in the byte before it.
quintptr Sonde::Detail::anonymous_namespace{stackcapture.cpp}::functionStart (quintptr)
 The start of the function that contains an address: unknown on this platform.
QString Sonde::Detail::anonymous_namespace{stackcapture.cpp}::shortName (const QString &name)
 name with its parameter list elided: "Ns::Class::method(…) const".
QString Sonde::Detail::anonymous_namespace{stackcapture.cpp}::frameLine (const QJsonObject &frame, const QJsonArray &modules)
 One frame as a line of text.
QJsonArray Sonde::Detail::anonymous_namespace{stackcapture.cpp}::frameKeys (const QJsonArray &frames)
 What identifies a sample's frames, to fold identical samples.
QString Sonde::Detail::formatSamples (const QJsonArray &samples, const QJsonArray &modules, int topFrames=20)
 The samples of one stall as text, one frame per line: identical samples folded, the top topFrames frames of each, and the rest summarised (design 0016).

Variables

ModuleFacts Sonde::Detail::anonymous_namespace{stackcapture.cpp}::moduleFacts (quintptr)
 The module that contains an address: unknown on this platform.
FrameFacts Sonde::Detail::anonymous_namespace{stackcapture.cpp}::frameFacts (quintptr)
 A frame's certain name: none on this platform.

Detailed Description

Private: Sonde::Detail::StackCapture, FrameNamer and formatSamples() (design 0016).