|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Names frames, and collects the modules they are in, for the samples of one event. More...
#include <stackcapture_p.h>
Public Member Functions | |
| QJsonArray | frames (const RawStack &stack) |
The frames of stack, as JSON objects: "module" (an index into modules()), "offset", and "name", "file" and "line" when they are certain (design 0016). | |
| QJsonArray | modules () const |
| The modules seen so far: "name", "path", "base" (hex) and "buildId". | |
Private Member Functions | |
| int | moduleIndex (quintptr pc, quintptr &base) |
The index of the module that contains pc in m_modules, adding it if needed; -1 if no module does. | |
Private Attributes | |
| QJsonArray | m_modules |
| As modules() returns. | |
| QList< quintptr > | m_bases |
| Load address of each entry of m_modules. | |
Names frames, and collects the modules they are in, for the samples of one event.
Runs on the sampler thread, after the target runs again: it allocates and may take the loader's locks.
|
private |
The index of the module that contains pc in m_modules, adding it if needed; -1 if no module does.
Sets base to its load address.