QSPY  5.8.0
QSPY MscGen Support

The QSPY host application can also save the tracing data in the format suitable for the MscGen utility to generate sequence diagrams.

Note
The MscGen utility is also available in the Qtools collection (the same that contains QSPY itself, see Installing).

To generate an MscGen file, you need to invoke QSPY with the -g command-line option, or to hit the g key-stroke while QSPY is running.

Note
The generation of sequence diagrams relies on the following QS trace records being enabled: QS_QF_ACTIVE_POST_FIFO, QS_QF_ACTIVE_POST_LIFO. Additional annotations of the sequence diagrams are also available if the following QS trace records are enabled: QS_QF_PUBLISH, QS_QF_TICK, and QS_QEP_TRAN.

Subsequently, you need to invoke the MscGen utility to convert the generated file to graphical format, such as .PNG, .EPS, .SVG, or .ISMAP. For example, the following command generates a sequence diagram in .SVG from the dpp.msc file.

mscgen -Tsvg -idpp.msc

The following screen shot shows a sequence diagram generated from the Dining Philosophers Problem (DPP) application. The .MSC file has been converted to .SVG and viewed in a web browser (Google Chrome in this case).

mscgen_dpp.gif
Note
The numbers proceeding the signal names in the diagram are the Target time-stamps.

Next: QSpyView Front-End