Commit Graph

7 Commits

Author SHA1 Message Date
88d0589fea libsysprof-profile: tail journald and append logs to capture
It can be handy to get system information from journald to correlate with
what is going on in applications. This simple journald tail GSource will
dispatch to our callback which can append the logs to the capture.

This uses a custom callback rather than the GSourceFunc because that seems
a bit annoying to use with recent GCC function equivalence checks.
2023-07-12 10:31:23 -07:00
20b8fbe604 config: add APP_ID and APP_ID_S to config.h 2022-08-22 12:02:48 -07:00
7401e434dc Revert "build: remove config.h.meson"
This reverts commit 5298e67d12.
2022-08-22 12:02:07 -07:00
5298e67d12 build: remove config.h.meson
We don't need this anymore, so just drop it and let meson generate our
file every time.
2022-07-22 12:52:57 -07:00
3f2b486741 build: remove symbol visibility from capture static library
The visibility of symbols was getting extracted from the .a into the
libraries that link_whole the archive. We can simply disable the visibility
from the .a with a custom config.h.meson which avoids it for the capture
library. Since we already double-compile those sources for the shared
library, the shared library visibility is not affected.

This was tested by compiling a simple library which calls
sysprof_clock_init() and ensuring that no extra symbols were found with
`nm libfoo.so | grep ' T '`.

Fixes #60
2021-03-22 14:49:00 -07:00
a827b61d63 i18n: ensure we setup i18n/l10n during application startup
Historically, Sysprof never supported translations. When revamping the
Sysprof implementation we didn't fix that, even though we were able to
start accepting translations.

This ensures we setup the translation tooling at startup.

Fixes #3
2018-09-25 14:38:29 -07:00
52bc856be4 build: Add support for Meson 2016-12-01 02:34:11 -05:00