c2cafc9882
build: add some scary warning messages
2016-04-24 17:23:04 -07:00
82d924b87a
docs: update DESIGN.md
2016-04-22 18:34:48 -07:00
8709eaff14
build: let gcc know our cast is safe
...
Data is already aligned, so casting the ->data field is fine.
2016-04-20 22:35:17 -07:00
e759f2999f
elf: tag GtkSourceView symbols
...
We see this library enough in the platform that it is work tagging.
2016-04-20 20:36:01 -07:00
b97425b300
perf: make sure we emit finished after last process exits
...
This fixes the "auto-stop" feature when the child exits, at least in the
case of /usr/bin/gnome-calculator. However, when testing with gedit I
did not see it accurately clean up, so something still needs to be
troubleshooted.
2016-04-18 22:31:39 -07:00
a85bd6e41f
build: ensure COPYING.gpl-2 is bundled in tarballs
2016-04-18 18:53:26 -07:00
a594d06b0c
perf: let the compiler know our cast is alignment-safe
...
We know everything is 64-bit aligned, so casting via (void*) squashes
the compiler warning.
2016-04-18 18:52:20 -07:00
58a2946e45
remove duplicated COPYING for GPLv2.
2016-04-18 18:51:45 -07:00
ba32676d12
Updated Brazilian Portuguese translation
2016-04-18 12:45:18 +00:00
ff395e94c6
window: protect against delayed ::stopped
...
Large captures could take a while to complete the stop request, so protect
against that so that the user can't accidentally start another capture.
2016-04-18 00:02:50 -07:00
cd98ded300
Added Swedish translation
2016-04-17 20:06:30 +00:00
b37ca76238
Updated Polish translation
2016-04-17 15:30:12 +02:00
7a639e9bf8
menu-button: ensure the scrolled window is always full width
...
When no items were present, this was shrinking. It should always maintain
width of the popover.
2016-04-16 18:58:43 -07:00
57faf5b9e6
menu-button: show process arguments in process list
...
This parses the \0 out of the cmdline proc entry and makes them visible
as both in the list of processes and as tooltips when hovered.
2016-04-16 18:57:50 -07:00
9e082a257d
menu-button: hide the process list when whole-system is enabled
...
No sense in showing a desensitized widget that cannot be toggled except
for discover-ability. But progressive disclosure is probably better.
2016-04-16 18:21:26 -07:00
4fdd7aca71
menu-button: improve error reporting on argv command line
2016-04-16 17:40:07 -07:00
117d4c480d
about: handle response from about dialog
...
On systems where this shows a close button, we need to handle the
response and destroy the dialog.
2016-04-16 17:22:52 -07:00
f4aabd8b7c
perf: ignore not-supported failures
...
If the pre-authorize fails due to lacking support for sysprofd, that is
fine, we can fail later on if authorization was required.
2016-04-16 17:16:29 -07:00
f5904bc493
perf: fix typo
...
Typo when polkit/sysprofd is unavailable to pre-authorize the request.
2016-04-16 17:14:42 -07:00
4479c56135
perf: polkit is optional for the library
...
So changing this was a little backwards. The goal here is to allow using
libsysprof-2 without polkit, it just won't have the ability to elevate
privileges.
2016-04-16 17:13:56 -07:00
74d88245c5
perf: use #ifdef not #if
...
This is conditionally added to CFLAGS, so make sure we use #ifdef instead
of #if.
2016-04-16 17:08:38 -07:00
c2eecefe50
build: add polkit cflags/libs to libsysprof-2 target
2016-04-16 17:05:56 -07:00
f307ce50ab
platform: fix missing ;
...
Clearly, we are testing the fallback path well.
2016-04-16 17:00:56 -07:00
f2d40eda89
platform: include gstdio for g_unlink().
2016-04-16 16:57:11 -07:00
9f8f33b210
perf: use #ifdef, not #if
...
config.h does not unconditionally define these, they are not defined when
inactive.
2016-04-16 16:56:41 -07:00
06aaff90e5
perf: optionally enable clockid and use_clockid
...
Some kernels to not have this feature yet, so check for support in
linux/perf_event.h and optionally enable the struct field.
2016-04-16 16:07:11 -07:00
de572f4ed6
memfd: add workaround for systems without memfd
...
Just a quick workaround to use a tmpfile if memfd is not available. We
should try to ensure that we get something on tmpfs, but this is probably
good enough for a fallback.
2016-04-16 15:49:03 -07:00
15370ecc42
Updated Brazilian Portuguese translation
2016-04-16 11:03:26 +00:00
605572d645
post-release bump
2016-04-15 19:24:48 -07:00
aaf81c5cfb
release Sysprof 3.20.0
2016-04-15 19:22:30 -07:00
8291e05da3
menu-button: sync menu button settings when attaching profiler
...
We were failing to launch a program a second or third time, due to the
settings not beeing sync'd to the profiler instance.
2016-04-15 18:19:20 -07:00
36008c4ab4
window: notify the user when no valid samples were collected
...
If we failed to collect any samples in the target profile, let the user
know why the callgraph is empty.
2016-04-15 18:11:31 -07:00
ceeb29b0e6
callgraph: add accessor to determine number of functions
...
We can use this to notify the user that not enough samples where collected
to build a callgraph. This can happen when all the samples collected are
ignored (due to being in ignored kernel space address ranges for example).
2016-04-15 18:11:02 -07:00
d4ab108786
window: title should be set on headerbar
...
When set on the window, we seem to lose the value when inserting the
headerbar, resulting in the title being "sysprof" (binary name) according
to the shell. Setting this on the headerbar seems to fix that.
2016-04-15 17:51:32 -07:00
ae5338aaf1
theme: add fallback styling for 3.18
...
New styling doesn't apply on 3.18 which is used on F23. Since packages are
being built for that, might as well fix the styling.
2016-04-15 17:17:44 -07:00
ab4dd75269
Added Brazilian Portuguese translation for help files
2016-04-15 12:50:48 -03:00
ff6dc11350
Updated Brazilian Portuguese translation
2016-04-15 15:44:55 +00:00
4fc64e1bed
Added Brazilian Portuguese translation
2016-04-15 14:21:27 +00:00
18d2d81824
perf-source: we need PERF_SAMPLE_TID
...
I mistakingly removed this, which caused us to not get sample delivery.
2016-04-15 05:04:29 -07:00
49e9ad9db8
capture: make counter value a union of int64 and double
...
This allows us to use the type field of the counter to specify if the
counter is a double or a 64-bit integer.
2016-04-15 04:54:55 -07:00
88cc6485dd
dump: add more info on various events
2016-04-15 04:51:23 -07:00
48420b0c87
writer: increment the next counter id, not the return value
2016-04-15 04:51:23 -07:00
253b387323
capture: add sp_capture_reader_peek_frame()
...
It can be useful to peek at the whole frame header (for things like time
or pid or cpu).
2016-04-15 04:51:23 -07:00
ad5f855a2b
capture: add 64-bit time stamp for start time
...
We keep the start time as a iso8601 string, which is useful, but not
enough for relative timestamps to the epoch (start time). Include a
clock time in the same clock domain.
2016-04-15 04:51:23 -07:00
f72306f5a8
writer: use SP_CAPTURE_CURRENT_TIME
...
This should be nsec, not usec based time.
2016-04-15 04:51:23 -07:00
5d18b77007
tests: use SP_CAPTURE_CURRENT_TIME
...
We use nanosecond time, not usec.
2016-04-15 04:51:23 -07:00
dd821b48e8
perf-source: fix acquisition of time for comm and mmap events
...
We were not getting the proper value for time. We need sample_id_all set
according to my cursory reading of the core.c in the kernel. Also, the
time is aligned to 64-bit (after the comm field).
2016-04-15 04:51:23 -07:00
609ee997da
perf-counter: pass sample_id_all to sysprofd
2016-04-15 04:51:23 -07:00
3e1bc8eb4a
sysprofd: add sample_id_all field to options
...
We need this to get the time field from mmap/comm events.
2016-04-15 04:51:23 -07:00
d7ed2ddf30
writer: allow callers to define a counter range
...
This allows dynamic counter ids that can be allocated in blocks.
2016-04-14 21:36:07 -07:00