QP is a header-only library containing debug macros. It is not intended for permanent inclusion into a project but rather only for debugging highly specific issues.
Various macros can be defined before #include "qp.h"
which adapt the library
to the target environment, for example to use the target project's own log
output function.
Built-in functionality:
- Display func(line): header
- Optional custom timestamp header
- Rate limiting (per-location)
- Micro-profiling certain areas
- Helpers to format various network-related structures.
- Automatic detection of "kernel/userspace" environment.
Symlink qp.h
to somewhere in your include path and #include "qp.h"
Doxygen HTML is published on gitlab pages and also gitlab artifacts
Documentation can be build with make docs
.
Run make check
.
This requires libcheck which can be installed
via apt install check
.
Test coverage is low.