[Development] Tracing for applications

Milian Wolff mail at milianw.de
Thu Dec 5 22:22:53 CET 2019


On Mittwoch, 4. Dezember 2019 12:23:00 CET Lukast dev wrote:
> Hello,
> 
> is there some Qt solution for producing traces used for performance
> analysis?
> 
> There is on-going work for LTTNG and ETW in Qt I noticed, e.g. here
> https://codereview.qt-project.org/c/qt/qtbase/+/185287. Can that solution
> be re-used in Qt applications?
> If so, is there some documentation for this?

We at KDAB are currently experimenting with this inside Qt itself. As such, we 
aren't confident enough to publish what we have as public API yet. That said, 
I would more than welcome more eyes on this. There is no documentation other 
than the sources. If you have any concrete questions, don't hesitate to ask.

> For now I run into this minitrace library
> https://github.com/hrydgard/minitrace that provide
> Event traces that can be visualized in Trace Event profiling tool in Google
> Chrome and that's what I'm using. But I'm looking for something that is
> closer to Qt-based solution.

The current architecture we build for Qt is platform and tracing-tool 
agnostic. We currently support ETW and LTTng. Adding support for other 
providers, like minitrace, should hopefully be possible thanks to the tracegen 
code generator.

Cheers

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20191205/48d432ff/attachment.sig>


More information about the Development mailing list