188 Commits

Author SHA1 Message Date
309ec5b091 Release 3.38.1 2020-10-15 17:12:53 -07:00
50439c9ca9 compat: add fallback implementation for reallocarray(3) 2020-09-15 20:30:48 +07:00
510ca74f23 Release 3.38.0 2020-09-12 11:42:36 -07:00
56b6dc55f6 release 3.37.92 2020-09-06 13:33:52 -07:00
d6aabaf1ff build: use current_build_dir() instead of build_root()
This can help with subprojects.
2020-08-21 15:20:04 -07:00
e656c334d8 release 3.37.90 2020-08-11 08:57:01 -07:00
857d91624c build: bump meson version 2020-07-28 09:33:40 -07:00
4f4674c54f Release 3.37.2 2020-07-28 09:21:20 -07:00
50679dba04 build: Add feature test flags to project-wide preprocessor flags
Rather than defining them piecemeal in each C and H file, and having
problems with headers being included in different orders so that
`_POSIX_C_SOURCE` gets a value which is too low, just define the feature
test flags in `meson.build`.

See `man 7 feature_test_macros`.

This is useful for when building sysprof as a subproject beneath a
project which doesn’t define these macros, or which targets an older C
standard than `gnu11`.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-07-06 11:27:06 +01:00
24033d586e build: make C++ language conditional
We don't need C++ unless we are building the C++ demangler.
2020-07-04 15:46:03 -07:00
3c8a9e4152 build: bump for new ABI 2020-07-04 11:30:11 -07:00
5d1678974a build: Simplify config file setup
This introduces no functional changes, just simplifies the code.

As described in the meson manual
(https://mesonbuild.com/Configuration.html#configuring-without-an-input-file),
passing `false` to `configuration_data.set()` will cause the specified
value to be `#undef`fed. Passing `true` will cause it to be defined to
1.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-07-03 22:01:33 +01:00
3c7b76c6ba build: Move Meson dependency() calls to where they’re used
This avoids making the project depend on all its dependencies, some of
which are optional, when being built as a Meson subproject.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-07-03 22:01:33 +01:00
6e281dca1f libsysprof-capture: Use strlcpy() instead of g_strlcpy()
If the system doesn’t provide `strlcpy()` (FreeBSD does, Linux doesn’t),
use an inbuilt copy instead.

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

Helps: #40
2020-07-03 22:00:34 +01:00
2cc79dd444 build: bump ABI to 4 2020-07-02 21:07:11 +01:00
1bfdcca9d1 build: Update bug report define in meson.build
GitLab!

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-06-25 14:58:42 +01:00
4a2aaf7ebd bump version for development 2020-03-13 10:18:51 -07:00
dcaeba54ee release 3.36.0 2020-03-06 14:03:33 -08:00
82c2ee5a73 build: fix building in jhbuild
Not sure why we are hitting this, but we are so just force it to work.
2020-03-06 13:43:15 -08:00
a6c39af553 preload: move to libdir from libexecdir
This isn't an executable, it just belongs in libdir.
2020-03-05 15:46:03 -08:00
d6fef722a0 build: add meson subproject with libdazzle.wrap
When building on older systems such as RHEL 7, it can be convenient
to have access to libdazzle directly.

This also has to work around a problem that RHEL 7 does not support
the version of git that Meson requires for [wrap-git] by using a
specific release.
2020-03-02 11:35:14 -08:00
0add5eb035 release 3.35.92 2020-02-28 09:27:40 -08:00
5b88e9c3aa build: check for unw_set_cache_size()
This may not be available on older libunwind versions such as 1.2.
2020-02-20 11:22:56 -08:00
454b192a19 build: relax GLib requirement to 2.56 2020-02-20 11:08:26 -08:00
cd8a99402f build: fallback to __sync_synchronize()
If we're running on a GCC older than 4.9, then we won't have the
stdatomic.h available. We can just use a full barrier instead using
__sync_synchronize() to get the same effect, albeit slower.
2020-02-20 10:38:35 -08:00
e06638d665 build: make libunwind optional 2020-02-17 12:02:44 -08:00
33c81a3a9c memprof: add memory profiling using LD_PRELOAD
This brings over some of the techniques from the old memprof design.
Sysprof and memprof shared a lot of code, so it is pretty natural to
bring back the same callgraph view based on memory allocations.

This reuses the StackStash just like it did in memprof. While it
would be nice to reuse some existing tools out there, the fit of
memprof with sysprof is so naturally aligned, it's not really a
big deal to bring back the LD_PRELOAD. The value really comes
from seeing all this stuff together instead of multiple apps.

There are plenty of things we can implement on top of this that
we are not doing yet such as temporary allocations, cross-thread
frees, graphing the heap, and graphing differences between the
heap at to points in time. I'd like all of these things, given
enough time to make them useful.

This is still a bit slow though due to the global lock we take
to access the writer. To improve the speed here we need to get
rid of that lock and head towards a design that allows a thread
to request a new writer from Sysprof and save it in TLS (to be
destroyed when the thread exits).
2020-02-07 19:00:33 -08:00
21fc5609f2 build: ignore post-install unless gtk app is installed 2020-02-07 11:04:03 -08:00
aee8bb12c8 build: add -Wl,-z,relro -Wl,-z,defs and -Wl,-z,now link flags 2020-01-31 09:13:01 -08:00
e727ad5333 release 3.35.3 2020-01-02 12:15:11 -08:00
c074971173 Release 3.35.2 2019-12-11 10:50:23 -08:00
653ff6ba9e build: add datadir to pkgconfig files
Mutter wants sysprof's exact dbus interface directory during build time
* https://gitlab.gnome.org/GNOME/mutter/blob/master/src/meson.build#L714

On certain platforms mutter's datadir != sysprof's datadir.
This is initial work for a forthcoming PR to do
```
sysprof_dep.get_pkgconfig_variable('datadir')
```
in mutter for compatibility with these platforms.

This patch is on behalf of nixpkgs where we actually have to carry a 
downstream patch [0] for this exact reason. We install everything into 
their own immutable prefix under `/nix/store`.

[0]: a821167046/pkgs/desktops/gnome-3/core/mutter/0001-build-use-get_pkgconfig_variable-for-sysprof-dbusdir.patch
2019-12-04 17:17:58 -05:00
af2251b48d build: drop glib requirement
This isn't needed to maintain compatibility.

b624ec8809 (note_636631)
2019-10-31 11:07:55 -07:00
b624ec8809 build: track changes to GLib and gdbus-codegen
GLib is already doing this, which broke a number of auto-generated code.
This tracks those changes and manually sets the annotations so that we
are guaranteed to get this behavior.

We'll need to fix other uses (such as in Mutter), but we have to do that
already because of the change in GLib.

Fixes #17
2019-10-30 14:46:20 -07:00
b7e2601a93 bump for development 2019-10-15 14:42:45 -07:00
15acfe0e3a release sysprof 3.34.1 2019-10-07 13:01:05 -07:00
ee32407b28 Release 3.34.0 2019-09-09 18:00:24 -07:00
c1ac19d00d build: whitespace cleanup 2019-09-09 17:58:42 -07:00
6e6967c0a9 release 3.33.92 2019-09-04 15:19:37 -07:00
d13f22416f build: require meson 0.50
Keep this a bit more modern so that we afford ourselves some additional
features during micro releases.
2019-09-04 15:16:31 -07:00
e3bcf81b45 build: fix version check 2019-09-04 10:29:35 -07:00
93355ce3fc Require GLib 2.62
g_date_time_format_iso8601 was introduced in this version.
2019-09-03 15:45:05 +02:00
cc9c6c1dc8 Release 3.33.90 2019-08-08 16:12:39 -07:00
d982e863f3 release 3.33.4 2019-08-01 00:38:44 -07:00
572bfc8844 prepare 3.33.3 release 2019-06-25 14:28:26 -07:00
af2a17daa5 polkit: try harder to make polkit optional on non-Linux
We want the viewer to be usable on Mac/Windows/FreeBSD, even if our
profiler tooling isn't (yet).

Another option could be to do a simplified viewer window for those
platforms, but I think that is more work to maintain than abstracting
some of the stuff better in libsysprof.
2019-06-04 14:28:06 -07:00
047442aa1b build: make some dependencies optional based on config options 2019-06-03 12:28:37 -07:00
dbb6b9143f examples: add example app for marks 2019-06-03 11:39:56 -07:00
0a81d1a93d libsysprof: lower dazzle requirement 2019-05-29 16:47:34 -07:00
7c75210748 build: bump version number for new features
This will let us more strictly check things from Builder.
2019-05-29 15:18:59 -07:00