Commit Graph

16 Commits

Author SHA1 Message Date
51a5b20de3 libsysprof: include <errno.h> where appropriate 2020-08-08 10:51:26 -04:00
45c8c95706 libsysprof-capture: Drop GError usage from SysprofCaptureWriter
Use `errno` instead, which is icky, but given that all of the failure
modes are from POSIX I/O functions, it’s at least in keeping with them.

This is a major API break.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
2020-07-03 22:00:34 +01:00
e19d70bca0 libsysprof-capture: Drop GError usage from SysprofCaptureReader
Use `errno` instead, which is icky, but given that all of the failure
modes are from POSIX I/O functions, it’s at least in keeping with them.

This is a major API break.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
2020-07-03 22:00:34 +01:00
0fbe44f06c libsysprof: use properties for D-Bus attributes 2019-06-06 17:33:16 -07:00
e8b9d19f92 libsysprof: watch bus name changes for target bus peer 2019-06-04 18:51:12 -07:00
a74e6daa3b libsysprof: use a{sv} for future profiler specific options
We may need this in the future to send backend-specific options to the
profiler peer.
2019-05-29 15:13:01 -07:00
552ccb4f60 libsysprof: move tracefd to separate source 2019-05-29 15:13:01 -07:00
697ef7f350 libsysprof: serialize dbus proxy settings 2019-05-29 15:13:01 -07:00
54c39172df libsysprof-ui: fix dereference after steal
This is undefined behavior and most go right to left
2019-05-29 15:13:01 -07:00
27e75cf61b libsysprof: improve some defaults 2019-05-29 15:13:01 -07:00
3321308c4a libsysprof: use SYSPROF_TRACE_FD env var when spawning
This avoids connecting to the bus which is racey, and instead just hands
the FD off to the subprocess.
2019-05-29 15:13:01 -07:00
86aeb56f41 libsysprof: join using cat helper 2019-05-29 15:13:01 -07:00
570df015fa libsysprof: start on proxy source implementation
Still need to implement the join support for the writer.
2019-05-29 15:13:01 -07:00
53addd7222 libsysprof: emit finished in source 2019-05-29 15:13:00 -07:00
4ef741348c libsysprof-ui: set as ready for now 2019-05-29 15:13:00 -07:00
588fd43d8b libsysprof-ui: stub out proxy source
The goal for this (which is unfinished) is to setup a dbus proxy to the
peer. That can be reused for both gtk and mutter, if configured correctly.

We'll likely need to allow some specific config tweaks in the UI.
2019-05-29 15:13:00 -07:00