The minimal C API in libheaptrack.h should be made public somehow. We probably also want to link against a libheaptrack.so from the existing tools and allow others to link against that library.
Additionaly, create a separate header that has inline code to check whether the app runs within heaptrack and then calls the libheaptrack.h API, or noops otherwise. Useful to integrate it e.g. in QML or other places with hopefully minimal overhead