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

Classes

struct  ModuleFacts
 What is known about the module that contains an address. More...
struct  FrameFacts
 A frame's certain name, and its source file and line when known. More...

Functions

QString hex (quintptr value)
 value as "0x..." in lower case.
quintptr 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 functionStart (quintptr)
 The start of the function that contains an address: unknown on this platform.
QString shortName (const QString &name)
 name with its parameter list elided: "Ns::Class::method(…) const".
QString frameLine (const QJsonObject &frame, const QJsonArray &modules)
 One frame as a line of text.
QJsonArray frameKeys (const QJsonArray &frames)
 What identifies a sample's frames, to fold identical samples.

Variables

ModuleFacts moduleFacts (quintptr)
 The module that contains an address: unknown on this platform.
FrameFacts frameFacts (quintptr)
 A frame's certain name: none on this platform.

Function Documentation

◆ lookupAddress()

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.

Frame 0 is where the thread was.

◆ shortName()

QString Sonde::Detail::anonymous_namespace{stackcapture.cpp}::shortName ( const QString & name)

name with its parameter list elided: "Ns::Class::method(…) const".

The parameter list is the last parenthesised group outside template arguments ("(anonymous namespace)" and "operator()" come before it).