Debugging and Profiling Qt applications on Linux

This training introduces tools to help developers and testers find bugs and performance issues in Linux applications. The tools presented cover a wide range of problems, from general-purpose debugging and CPU profiling to Linux-specific high-level analyzers.

We offer two types of in-person training: Scheduled, for individuals from diverse companies and In-Company for teams. Some on-line options may also be available. Contact us for more information.

Course Contents:

This training focuses on what a developer should know for being efficient on both desktop as well as embedded Linux.

The following tools will be covered:

Debugging on Linux:

  • general purpose debuggers: GDB, RR
  • memory error detectors: valgrind’s memcheck, AddressSanitizers
  • thread error detectors: ThreadSanitizer
  • tracing: ldd, strace
  • various Qt-builtin features
  • GammaRay to investigate internals of Qt applications
  • OpenGL: apitrace

Profiling on Linux:

  • CPU: valgrind’s callgrind, Linux perf, Intel VTune Amplifier XE
  • heap memory: valgrind’s massif, heaptrack
  • QML: QML profiler
  • OpenGL: apitrace
  • system-wide: LTTng

Testing on Windows and Linux:

  • Qt TestLib: unit tests and benchmarks
  • static code analysis: clang analyzer, Coverity, Clazy
  • code coverage: gcov

Download the full table of contents...

Course Information

This course is for:

Developers who want to find and fix problems

Prerequisites:

Knowing the basics of C++ and Qt

Duration:

3 days

Upcoming Courses

Start

Days

Location

Course

Language

Price ex. VAT

██████

███

███████████████

███

███

█████

███

██████

███

███████████████

███

███

█████

███

██████

███

███████████████

███

███

█████

███

* plus VAT if applicable

Why learn about Debugging and Profiling?

The time spent writing code is often dwarfed by the time required to find bugs and improve performance. This training makes your development workflow more efficient: You will learn what tool to use in which situation, and how to set it up and run it on an application. Finally, you will learn how to analyze and interpret the results obtained from the various tools.