Commit Graph

33 Commits

Author SHA1 Message Date
4067b5e592 libsysprof-capture: improve zero'ing when reading back 2019-05-29 15:13:01 -07:00
567f8a3a0f libsysprof-capture: shorten names by removing Frame 2019-05-29 15:13:01 -07:00
97bae7d9e3 libsysprof-capture: add cat helper 2019-05-29 15:13:01 -07:00
931849b25c build: add missing libraries to pkgconfig files 2019-05-29 15:13:01 -07:00
68cd3a8178 libsysprof-ui: fix documentation 2019-05-29 15:13:00 -07:00
db9aea95ea libsysprof-capture: add metadata frame type
This will allow sources and aids to discover information about what was
done between capture loading and saving.
2019-05-29 15:13:00 -07:00
395c801476 libsysprof-capture: save filename if first save 2019-05-29 15:13:00 -07:00
8feeec782f libsysprof-capture: discover the end time if necessary
If we get a capture file without a valid end-time, we should just go
discover that up-front instead of dealing with it all over the place.
2019-05-29 15:13:00 -07:00
0c62fd13d4 libsysprof-capture: copy stat when dup'ing reader 2019-05-29 15:13:00 -07:00
aed80ea51f libsysprof-capture: add stats to reader when possible
We can also back-fill these when reading a capture file.
2019-05-29 15:13:00 -07:00
2e4b17be17 libsysprof-capture: add or condition 2019-05-29 15:13:00 -07:00
6731b1552b libsysprof-capture: whitespace cleanup 2019-05-29 15:13:00 -07:00
74ea7d197c libsysprof-capture: copy discovered end_time 2019-05-29 15:13:00 -07:00
2498b4cded libsysprof-capture: try harder to get proper end-time 2019-05-29 15:13:00 -07:00
7a0132ac92 libsysprof-capture: update end time for marks 2019-05-29 15:13:00 -07:00
8145f991e5 libsysprof-capture: whitespace cleanup 2019-05-29 15:13:00 -07:00
8f36c16a91 libsysprof-capture: whitespace cleanup 2019-05-29 15:13:00 -07:00
d38b3be158 libsysprof-capture: whitespace cleanup 2019-05-29 15:13:00 -07:00
63b4b6d58d libsysprof: whitespace cleanup 2019-05-29 15:13:00 -07:00
c1e9b90f97 libsysprof-capture: whitespace cleanup 2019-05-29 15:13:00 -07:00
dcbcd3caf5 libsysprof-capture: remove dead code 2019-05-29 15:13:00 -07:00
623d7ad027 build: cleanup dependency checking
We always require polkit now, so that we can fallback when we fail to
communicate with the peer.
2019-05-29 15:13:00 -07:00
53c718b708 build: rename all symbols to use sysprof_ as prefix
As we gain in usage, we need to be more careful about using a prefix
that will not collide with other symbols. So version 3 of our ABI will
change to using Sysprof/SYSPROF/sysprof as the various prefixes.

The soname/api version bump will happen later on this branch so that
things are easier to test up until then.
2019-05-29 15:12:59 -07:00
a54892e33f libsysprof: remove use of static library
We can just include the files directly, and avoid the static
linking and potential problems that come with that when porting
the build system to other platforms.
2019-05-29 15:12:59 -07:00
55f587988b libsysprof-capture: add missing config.h includes
This is needed for symbol visibility.
2019-05-29 15:12:59 -07:00
1b3663362d libsysprof-capture: set symbol visibility to hidden 2019-05-29 15:12:59 -07:00
d9d572b557 libsysprof-capture: add availability macros 2019-05-29 15:12:59 -07:00
6ba408f073 shared: remove use of libshared
This moves everything into other places and simple includes the
files in the cases that it is necessary. In the future, we can
rewrite sysprofd to use GDBus and add GetProcFile() to allow
for client-side processing of kallsyms.
2019-05-29 15:12:59 -07:00
d89e2d8941 capture: add versioning macros 2019-05-29 15:12:59 -07:00
6b983ab8c1 capture: add task-id (thread-id) to samples
This could let us do some amount of filtering by threads going
forward if we have that data available to us.
2019-05-29 15:12:59 -07:00
173b583556 capture: allow macros and functions to co-exist 2019-05-29 15:12:59 -07:00
63bcfc2b0e build: various build fixes for macOS
This doesn't make profiling useful in any way, but it does get things
to the point where I can actually open a capture file. And it would
be nice if we could progress to the point of loading capture files
(with correct data in-tact) and this helps us move down that path.

To really do that correctly, we should make some of the widgetry
disabled when it isn't useful. We also need to ensure that we add extra
decoding information to capture files during shutdown so that any
platform can read it back. This would also help the situation of
running and reading on separate architectures.
2019-05-29 15:12:59 -07:00
1708ad1b48 tree: start on massive tree refactor
The big thing going on here is that we are going to split up the libraries
a bit better, and remove GObject from the capture library. The libsysprof
library will bring in the capture library statically, so we can export the
symbols we want.

Eventually, we will bump the version to sysprof-3, but not yet.
2019-05-29 15:12:59 -07:00