|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Classes | |
| struct | Named |
| A frame's name, and its source file and line, as a tool printed them. More... | |
| struct | Spot |
| Where an unnamed frame is in a stall's samples. More... | |
Functions | |
| QByteArray | readAt (QFile &file, qint64 offset, qint64 size) |
size bytes of file at offset; shorter at the end of the file. | |
| template<typename T> | |
| T | le (const QByteArray &data, qsizetype at) |
An unsigned little-endian integer of N bytes at at in data, or 0. | |
| quint32 | be32 (const QByteArray &data, qsizetype at) |
A big-endian 32-bit integer at at in data, or 0. | |
| BinaryFacts | elfFacts (QFile &file) |
| The facts of a 64-bit little-endian ELF file. | |
| QString | machUuid (QFile &file, qint64 offset) |
The UUID of the Mach-O image at offset in file (a thin image, or a slice). | |
| BinaryFacts | machFacts (QFile &file) |
| The facts of a Mach-O file, thin or universal (the slice of this machine). | |
| std::optional< QString > | runTool (const QString &program, const QStringList &args) |
Runs program with args, returning its standard output, or nothing. | |
| Named | withFileLine (Named named, QString location) |
| "file:line", or "file:line:column", with an optional " (discriminator N)". | |
| std::optional< QList< Named > > | nameInElf (const QString &path, const QStringList &addresses) |
Names addresses (the file's own addresses, as hex) in the ELF file path, with addr2line, or llvm-symbolizer if there is no addr2line. | |
| std::optional< QList< Named > > | nameInMachO (const QString &path, const QString &base, const QStringList &addresses) |
Names addresses (as loaded at base, as hex) in the Mach-O file path, with atos. | |
| std::pair< QList< Spot >, QStringList > | unnamedFrames (const QJsonArray &samples, int module, quint64 base, const BinaryFacts &facts, bool elf) |
The unnamed frames of samples in module module, and the address to look up for each (a return address points after its call: the byte before it is looked up), as the naming tool wants it: the file's own address on Linux, the loaded one (base) on macOS. | |
| void | applyNames (QJsonArray &samples, const QList< Spot > &spots, const QList< Named > &named) |
Puts the names in named into the frames of samples at spots. | |
| QString | whyNotNamed (const QJsonObject &module, const BinaryFacts &facts, QStringList ¬es) |
Why the frames of module can't be named from facts, or an empty string. | |
| QString Sonde::Cli::anonymous_namespace{symbolize.cpp}::whyNotNamed | ( | const QJsonObject & | module, |
| const BinaryFacts & | facts, | ||
| QStringList & | notes ) |
Why the frames of module can't be named from facts, or an empty string.
Adds a note to notes if they can, but unchecked.