I am working on a c++ library, which performs frequent communication with a piece of hardware. I need a way to instrument my code with tracepoints, that I can afterwards visualize the execution of on a timeline.
For example, I want to put in a tracepoint when I send a request to the hardware and another tracepoint when I receive an answer back. Afterwards I want to see these requests on a timeline, such that I e.g. can expect the timing between request and reply.
I am currently attempting to use the tracing tool lttng, however it seems that I was made primarily for the Linux kernel, and the userspace tools are just a bonus. The only tools I have found for visualising is the built in lttng view which is basically just a log file, and does not really help with complex interactions. The other tool is Trace Compass however again I run into the problem, that if you are not tracing the Linux kernel, you only get lots of events in the same color (black) on a single timeline, which does not provide a very good visualization of the trace.
I have been searching the past few days for any software library or other tool that can help me, with no luck. It seems that any simple logging library, with a good visualizer should be able to help me, but non seems to exist.
What can I do to achieve the visualisation of my library's interaction that I desire?
Aucun commentaire:
Enregistrer un commentaire