Commit Graph

817 Commits

Author SHA1 Message Date
52bc856be4 build: Add support for Meson 2016-12-01 02:34:11 -05:00
496f10e34a release 3.22.3 2016-11-28 14:05:01 -08:00
60305dc24b update AUTHORS 2016-11-28 14:04:46 -08:00
1e1f47c61a Update Polish translation 2016-11-27 17:30:22 +01:00
87289e0421 sysprof-cli: Don't overwrite capture file by default
Add -f / --force to allow overwrite

https://bugzilla.gnome.org/show_bug.cgi?id=775062
2016-11-26 10:05:29 -05:00
563a5e3e65 theme-manager: ensure that icons are loaded
This uses the theme manager to ensure that we add the icon path for
consumers of the library.
2016-11-23 19:19:43 -08:00
44ff1f0396 move icons to libsysprof resources 2016-11-23 19:15:38 -08:00
f11aaa189f capture-writer: finalize if allocate failed 2016-11-20 20:26:34 -08:00
e97499b2a4 capture-writer: use frame initializer function 2016-11-20 19:36:24 -08:00
9d8085a73b window: disable record button while generating profile 2016-11-16 20:14:44 -08:00
63579451b5 alignment: set alignment on structs
This uses an alternate idea for setting the structure alignments. Lets
see if this silents the ARM builder cast alignment issues.

GSlice (which is what is used for GObjects) guarantees a 2-pointer size
allocation, which means we can be ensured that the alignment is at least
8 bytes.
2016-11-15 22:18:09 -08:00
40eb9a2c4e callgraph-view: compare nodes by using data field
We could have multiple StackNodes that point at the same data. However
we might not have pointer equality. This uses the data pointer that nodes
point at to determine equality.
2016-11-15 22:03:36 -08:00
fc237f0a9b callgraph-view: ensure expand is set for function label
Using the .ui file to create the name cell does not allow us to set the
expand property (it defaults to FALSE and cannot be changed). So instead,
we just add the cell manually like we do for the tag cell.
2016-11-12 14:22:27 -08:00
e78f97d632 Update Brazilian Portuguese translation 2016-11-02 19:29:44 +00:00
4412a566be release 3.22.2 2016-11-01 14:06:34 -07:00
757a62c692 empty-state: allow action:// in labels
This allows us to have an action in the label that can execute a UI
element.
2016-10-17 20:03:46 -07:00
71e1134cbc capture-writer: ftruncate() when creating capture
We risk overwriting existing data leaving our file in a somewhat broken
state. So first ftruncate() to zero so we are starting from scratch.
2016-10-16 13:23:37 -07:00
cca23054fd Updated Czech translation 2016-10-16 22:09:13 +02:00
a321c8dda4 Update Slovak translation 2016-10-16 19:46:32 +00:00
392aa177b6 capture-writer: handle EAGAIN
This field is opportunistic, so failure isn't a big deal, but we can at
least try again in an EAGAIN case. Should also squash a compiler warning
about unused results.
2016-10-15 10:26:36 -07:00
a760a6ca10 build: silence some cast-align warnings on ARM 2016-10-14 11:40:55 -07:00
4b95b38c0a capture-cursor: skip when no read delegate was found
If we were skipping due to no matching read delegate, then
we can just ignore any checks on that frame and move to the
next.
2016-10-12 01:35:13 -07:00
e22df464fb Release 3.22.1
Overview of changes in Sysprof 3.22.1
=====================================

Changes since 3.22.0

 * A new data source called "hostinfo" has been added. It records various
   CPU datapoints as "counters" in the sysprof capture.
 * A new visualizers abstraction has been added so that we can start
   providing new ways to look at profiler data.
 * A CPU visualizer has been added which renders datapoints recorded
   from the hostinfo data source.
 * Selecting ranges of the visualizer will update the callgraph limiting
   stacktrace samples, to the given time range.
 * Missing headers are now installed which may be needed by applications
   using libsysprof-ui.
 * A keyboard shortcuts dialog has been added.
 * A theme manager has been added to allow us to provide custom CSS for
   various themes. Currently, we have additional styling added for
   Adwaita and Adwaita-dark.
2016-10-11 20:52:12 -07:00
b10948a51a build: fix distcheck 2016-10-11 20:51:41 -07:00
7f4b372b08 Update Hungarian translation 2016-10-11 07:46:45 +00:00
20f9f47966 selection: rename SpVisualizerSelection to SpSelection
We want this in sysprof.h (without UI components) so that we
can use it to filter things in profilers. Therefore, we don't
need to make it namespaced to "visualizers" since a time range
selection is a fairly straightforward, and non-UI confined
implementation.
2016-10-10 16:24:22 -07:00
c12c8bc345 visualizer-ticks: remove GdkWindow from ticks widget
This is preventing us from selecting using the region where the
ticks are drawn. This allows the GtkOverlay pass-through child
property to work.
2016-10-10 15:51:48 -07:00
e3f2b8760d Update Polish translation 2016-10-10 12:41:13 +02:00
17497498c7 Update POTFILES.in 2016-10-10 12:23:45 +02:00
3b61aefdce writer: flush before creating reader from writer
This ensures we have a valid end_time updated in the header
before creating a reader.
2016-10-10 01:48:00 -07:00
8e824c2886 build: bump version so Builder can depend on recent changes
So that Builder can depend on our recent visualizer work, we
can bump the version now here. We will release 3.22.1 before
too long anyway, so its fine to bump the number now and just
update news/tag for release.
2016-10-10 00:57:57 -07:00
4f659abad2 update NEWS 2016-10-09 21:12:49 -07:00
ceb7c02f93 sysprof-ui: add missing header to sysprof-ui.h 2016-10-09 20:31:10 -07:00
e239887a9b empty-state: make empty state labels changable 2016-10-09 15:12:50 -07:00
ff8ef76d38 theme-manager: remove debug code 2016-10-09 15:12:38 -07:00
034a7d881f visualizer-view: ensure types are registered
These have the chance of being dropped unless we export them
here manually. We probably should change how we export symbols
so this isn't required in the future.
2016-10-09 12:36:28 -07:00
3b2f2505d3 sysprof-ui: add missing header to public API 2016-10-09 12:36:17 -07:00
bc154617a3 sysprof-dump: print relative time for samples
This can be handy to quickly look at the relative time using
a double as the time.
2016-10-08 20:30:06 -07:00
34f493d553 capture: use SpClock for current timestamp
It is important that our capture current time matches the
same clock we are using for events. Otherwise we could have
drift between CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW.
2016-10-08 20:29:16 -07:00
b91deb26a9 test-capture: initialize clock on startup 2016-10-08 20:28:56 -07:00
62189670af callgraph: update callgraph when selection changes
When the visualizer selection is changed, we can update the
callgraph to ensure all samples fall within the time range.
2016-10-08 20:09:49 -07:00
00b9b1fbf5 visualizer-selection: move selection to sysprof.h
This allows us to use the selection in profile components
without the use of Gtk.

We will probably end up renaming this class to SpSelection or
something like that.
2016-10-08 20:08:56 -07:00
1e38dc7b37 callgraph-view: add missing get_profile() accessor 2016-10-08 19:20:45 -07:00
37edc29cbb callgraph-view: clear models when unloading 2016-10-08 19:20:30 -07:00
42b82f69c9 visualizer-selection: add visualizer helpers
Adds a copy helper (for thread access) and a contains helper.
2016-10-08 19:19:46 -07:00
7c55f379bb theme-manager: add SpThemeManager and use it for custom css
We want to set some custom backgrounds for the visualizers, and
those need to track with the current theme. SpThemeManager will
watch the systems theme changes (including dark theme) and
update the loaded CSS resources as necessary.
2016-10-08 16:28:18 -07:00
7ca8493130 viewport: remove SpViewport
We didn't end up using this by using plain GtkViewport.
2016-10-08 16:27:27 -07:00
aa61c43547 visualizer-view: fix selections when scrolling
If we have a scrolled view, we might be a bit off on the
selected range until this commit. This adjusts for the scrolled
area and ensures that both ticks and selections land in the
right place.
2016-10-08 15:36:01 -07:00
527f95fa77 help-overlay: add help overlay to SpWindow and app menu
This adds an app menu and window action to activate the keyboard
shortcuts overlay.
2016-10-08 15:09:38 -07:00
70aeeb66bc visualizer-selection: initial visualizer selection support
This gets started on allowing the user to select a region.
Nothing is yet responding to the changes in selection, but
that can come later.

Ideally, we will truncate (or mark rows invisible/insensitive)
if they do not fall within the selected time region.
2016-10-08 13:40:12 -07:00