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

sonde symbolize: names the frames of stack samples that the application could not name itself (design 0016). More...

#include "client.h"
#include <QtCore/QJsonArray>
#include <QtCore/QJsonObject>
#include <QtCore/QString>
#include <QtCore/QStringList>

Go to the source code of this file.

Classes

struct  Sonde::Cli::BinaryFacts
 What the file at path says about its build: its build ID (the ELF build ID or the Mach-O UUID, as the application reports them) and, for an ELF executable that isn't position-independent, the address it is linked at. More...

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

BinaryFacts Sonde::Cli::binaryFacts (const QString &path)
 Reads the facts of the binary at path.
QList< std::pair< QString, QJsonObject > > Sonde::Cli::findStalls (const QJsonValue &json)
 The stalls in json: every object with "samples" and "modules" arrays, however deep, with a title for each (from the event around it, if any).
QJsonObject Sonde::Cli::nameFrames (QJsonObject stall, QStringList &notes)
 Names the unnamed frames of stall ("samples" and "modules") with the platform's tools, after checking each module's build ID against its file.
void Sonde::Cli::symbolizeCommand (const Options &options, const QStringList &args)
 sonde symbolize [FILE] [--json]: the stalls in FILE ('-' for standard input), or the application's current and recent stalls, with their frames named.

Detailed Description

sonde symbolize: names the frames of stack samples that the application could not name itself (design 0016).

Function Documentation

◆ nameFrames()

QJsonObject Sonde::Cli::nameFrames ( QJsonObject stall,
QStringList & notes )

Names the unnamed frames of stall ("samples" and "modules") with the platform's tools, after checking each module's build ID against its file.

Adds a line to notes for each module it couldn't check or name.