Commit Graph

1128 Commits

Author SHA1 Message Date
209b342ea1 capture: switch to portability helpers
This switches over to using the portability helpers that may
be needed on some platforms other than Linux. On Linux, however,
they are just macros to the standard implementation provided
by (g)libc.
2019-05-06 20:07:29 -07:00
ac1767eff2 capture: add some portability fallbacks
If we're on non-Linux, we can use some portability fallbacks to
get similar behavior to Linux. I'm sure we can optimize this a
bit more for FreeBSD if someone with that installed wants to
come look at things and improve them.
2019-05-06 20:07:29 -07:00
607ef387e7 capture: use gint32 instead of GPid
GPid just isn't portable as a data type for on-disk storage, so
be more explicit and use gint32 directly.
2019-05-06 20:07:24 -07:00
191754e505 capture: make structs more cross-platform
There were some GCC'isms here that don't port well to mingw
(and likely other win32 compilers). Of note are the removal
of #pragma pack to instead use the GCC attributes or MSVC
declarations. Also we cannot be so liberal in our use of
bitflags, we need to use common types from neighbors.
2019-05-06 20:01:25 -07:00
b6d24dafcf capture: use unistd types 2019-05-06 16:39:41 -07:00
8ec9fea5cb capture: use _sp_sendfile() on non-Linux platforms
We still generally only build on Linux from the Sysprof
project, but we can start to support other systems in the
capture format (with the possibility of being more general
for the UI later on too).
2019-05-06 16:21:43 -07:00
0580b4ef0d capture: add sendfile() fallback
We want the capture format to be usable on systems other than
Linux so that it can be used in places like GTK. To do this,
we need a sendfile() fallback that can be portable/useful on
those systems.

FreeBSD has sendfile(), but the semantics differ slightly. This
implementation will walk up to the nearest page size and then
do page aligned pread()/write() which is likely good enough of
an implementation anyway.
2019-05-06 16:20:14 -07:00
36179e9ab4 tests: add check for buffer contents from save_as() 2019-05-06 16:19:58 -07:00
e63c267192 capture: only use <=32 bit bit fields 2019-05-06 15:08:55 -07:00
29c0ebf009 Updated Danish translation 2019-04-24 17:43:08 +02:00
029c6942af add da to LINGUAS 2019-04-24 17:43:08 +02:00
bffd4c63d5 release 3.32.0 2019-03-13 00:20:19 -07:00
1fe4faf567 Update Serbian translation
(cherry picked from commit 48141bd14e79216d297e2b406325fbe9f6321a6b)
2019-03-11 18:25:15 +00:00
664bb29711 Add Dutch translation 2019-03-10 12:53:15 +00:00
5f512929b2 Update Brazilian Portuguese translation 2019-03-06 20:30:58 +00:00
216cc3fbba Update Indonesian translation 2019-02-28 11:21:56 +00:00
2575579431 Update Italian translation 2019-02-28 08:00:38 +00:00
4dbf01df2e Update Polish translation 2019-02-21 18:11:31 +01:00
0bc3548c59 Update Swedish translation 2019-02-19 21:19:29 +00:00
f267830d14 Updated Spanish translation 2019-02-19 16:04:45 +01:00
1876dba50d release 3.31.91 2019-02-18 18:22:31 -08:00
f3ea9b2401 profiler: handle stop during startup more gracefully 2019-02-13 15:47:38 -08:00
d852c3e7ac release 3.31.90 2019-02-07 12:27:28 -08:00
61057e12cf Update Hungarian translation 2019-02-02 08:15:35 +00:00
de23b3bad0 Update Polish translation 2019-02-01 19:24:51 +01:00
6e922c4300 window: use org.gnome.Sysprof-symbolic 2019-01-30 14:27:22 -08:00
9c5b9d6be2 Merge branch 'wip/jimmac/app-icon-redesign' into 'master'
icon: update app icon

See merge request GNOME/sysprof!11
2019-01-30 22:27:03 +00:00
573c6ec82d icon: update app icon
- GNOME 3.32 redesign of app icons.
  See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
  for more info.

/label ~"9. Initiative: AppIconRedesign"
2019-01-29 13:28:51 +01:00
5770284eac Update Hungarian translation 2019-01-27 17:34:14 +00:00
aec0b7d2f6 Update Swedish translation 2019-01-07 22:30:53 +00:00
142887da68 Replace Bugzilla by Gitlab URL in DOAP file 2018-12-15 23:54:44 +01:00
8600ce0c1d style: fix typo 2018-12-12 21:49:16 -08:00
3b4f36700b style: tweak css for adwaita-3-32 development 2018-12-12 21:44:45 -08:00
7ffa5e6bdf Update Slovak translation
(cherry picked from commit ea5041bf51fed4c13d4bb6ce7e6ebd319a9072eb)
2018-12-02 18:39:27 +00:00
6bca58441e Update Indonesian translation 2018-11-15 16:45:15 +00:00
09105a7bca Updated Spanish translation 2018-11-15 12:29:57 +01:00
07d297b70b Update Brazilian Portuguese translation 2018-11-05 10:08:27 +00:00
eb54f379ea visualizers: fix boundary detection 2018-10-21 20:42:07 -07:00
d9cf5294aa Update Polish translation 2018-10-21 20:36:00 +02:00
7999f6c81c Updated Czech translation 2018-10-17 09:14:34 +02:00
a6f34b32cf theme: fix colors on development builds 2018-10-16 17:35:00 -07:00
eb8ffeb65c cli: fix spelling of CPU in a translatable string 2018-10-16 20:41:12 +02:00
adbc46f6ee Merge branch 'wip/jtojnar/link-args' into 'master'
build: Check relro support using cc.has_link_argument

See merge request GNOME/sysprof!9
2018-10-16 18:06:34 +00:00
fd395eb067 build: Check relro support using cc.has_link_argument
Meson 0.46 added cc.has_link_argument, which allows us to get rid
of the cc.links hack.
2018-10-16 19:48:42 +02:00
55372c5228 visualizers: discover memory counters
Simple discovery of memory counters to display in the capture set. We will
want to refactor this type of stuff in the future into recording "gadgets"
that combine a data-collector with a visualization layer.
2018-10-16 07:05:40 -07:00
1946306567 line-visualizer: auto-discover counter ranges
If we have not received a y-lower/upper value, then we can discover that
from the data set at the cost of an extra capture linear scan.

This is useful for the meomry source which can change the upper value
during the lifetime of a process.
2018-10-16 07:04:33 -07:00
36d76402cf memory: simplify memory recording source
There is certainly more we'll want to do here, but this gets some basics
in place that will make it easier to render the graph when visualizing.
2018-10-16 07:03:19 -07:00
9d9b79a438 theme: fix foreground 2018-10-15 19:01:57 -07:00
be185c2fbc theme: add development highlight to headerbar 2018-10-15 18:57:13 -07:00
23adcf0a23 cli: allow disabling memory/cpu sources
This allows us to add new data collection automatically, but allow users
to disable it if they know it's unnecessary for their use-case.
2018-10-15 16:51:23 -07:00