Dbg:Add CallableTracer for callables post()ed to boost.asio

This class and its macro allow us to trace the invocation of
callbacks as they're invoked by Boost.asio.
This commit is contained in:
2025-11-06 21:40:32 -04:00
parent eeb057effd
commit 457d0f9345
14 changed files with 212 additions and 35 deletions
+1
View File
@@ -49,6 +49,7 @@ public:
boost::asio::io_service& getIoService(void) { return io_service; }
static const std::shared_ptr<ComponentThread> getSelf(void);
static bool tlsInitialized(void);
static std::shared_ptr<MarionetteThread> getMrntt();
typedef void (mainFn)(ComponentThread &self);
+3 -2
View File
@@ -11,7 +11,8 @@
class OptionParser
{
public:
OptionParser() : verbose(false), printUsage(false) {}
OptionParser() : verbose(false), printUsage(false), traceCallables(false)
{}
~OptionParser() = default;
void parseArguments(int argc, char *argv[], char **envp);
@@ -38,7 +39,7 @@ public:
std::vector<std::string> senseApiLibs;
std::string dapSpecs;
std::vector<std::string> dapSpecFiles;
bool verbose, printUsage;
bool verbose, printUsage, traceCallables;
static struct option longOptions[];
};