Commit Graph

44 Commits

Author SHA1 Message Date
8e9497b277 libsysprof-ui: use EggPaned 2022-04-01 13:16:35 -07:00
bbce4b32b1 display: add helper to destroy from external sources 2022-04-01 13:15:49 -07:00
35d401417b display: port to GTK 4 2022-04-01 13:15:49 -07:00
36a9e37ee2 display: inherit from GtkWidget 2022-04-01 13:14:51 -07:00
94d7e90206 display: use GtkPaned
We don't need MultiPaned here (other than it works nicer than GtkPaned).
We can move to PanelMultiPaned in the future if we need it.
2022-04-01 13:14:51 -07:00
66d412b235 display: show time in local time
Fixes #67
2021-10-28 19:01:18 -07:00
b77523eb3d use g_memdup2() 2021-02-23 15:39:25 -08:00
97ddf5a0cc libsysprof: port UI to new ABI
Some minor changes were necessary so that we could change the ABI in
libsysprof-capture to be free from GLib (and therefore used by GLib).

This also adds some wrappers for capture API in libsysprof so that we
can continue to use GError from UI code.
2020-07-03 22:00:34 +01:00
51021ece1a libsysprof-ui: use "Recording" instead of "Capture" 2020-07-01 17:50:36 -07:00
03f32fe718 display: show message dialog when there is an error opening file
Fixes #42
2020-07-01 13:21:25 -07:00
259aa9ba93 libsysprof-ui: allow double click to select mark range 2020-03-13 17:00:17 -07:00
0c698f2da1 libsysprof-ui: dont warn for not-supported error 2020-02-26 10:46:08 -08:00
d525f065f4 libsysprof-ui: add API to reload pages
This can be useful when the page is interactive and needs to reload.
2020-02-18 19:17:38 -08:00
aca1a6a765 libsysprof-ui: check for valid frame type before incrementing 2020-02-13 14:32:34 -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
94b0ecb758 display: provide recording time for display titles 2020-01-23 12:46:44 -08:00
460df56fa5 visualizers: clear selected row when showing details
The details don't correspond to any selected row, so clear the row when
we switch to the details page.
2020-01-23 12:36:04 -08:00
731b6dd379 sysprof: allow passing program path to sysprof
If the path provided to us is an executable program (instead of a syscap
file) then we can setup the path as the binary to execute in the profiler
assistant and save the user a couple clicks.
2020-01-23 11:59:50 -08:00
599ecaebe1 display: remove unused variable 2020-01-23 11:59:50 -08:00
8712067b8e rapl: add new aid for the RAPL profiler 2019-07-31 15:05:10 -07:00
6f6ad38a3b diskstat: add aid to show duplex graph for disk graphs 2019-07-01 12:55:21 -07:00
6d4796294e netdev: start on netdev aid to display network graphs 2019-06-26 18:58:31 -07:00
e8528609ec libsysprof-ui: land new UI design
This comprises a massive rewrite of the UI for browsing captures. We use
the SysprofAid class to scan capture files for content and then auto-
matically add visualizers and details pages.

To avoid breaking things incrementally, we just land this as a very large
commit. Not necessarily ideal, but given the amount of stuff that could
break, this is easier.

As part of this process, we're removing a lot of the surface API so that
we can limit how much we need to maintain in terms of ABI.
2019-06-24 20:52:40 -07:00
5fd04d9fcb libsysprof-ui: be more flexible in creating displays
This allows us to create a display for a profiler, which is needed in
embedding cases like Builder.
2019-05-29 18:09:57 -07:00
7c41a99b99 libsysprof-ui: wire up display for re-recording 2019-05-29 15:13:01 -07:00
19f8c6b39f replay: add stubs and plumbing to implement a re-record
The goal here is to be able to do a duplicate recording to the previous
with a quick key-combination like Ctrl+R.

We still need to extract the metadata from the capture file and setup
a new profiler, but this gets the mechanics in place.
2019-05-29 15:13:01 -07:00
cd7eb1b822 libsysprof-ui: fix default filename to be syscap 2019-05-29 15:13:01 -07:00
82f5da8fe1 libsysprof-ui: check current page when checking if empty 2019-05-29 15:13:01 -07:00
7b017a31f1 libsysprof-ui: focus record button by default
Because if we break the "hit enter to launch, escape to stop" workflow
some people will be angry.
2019-05-29 15:13:01 -07:00
f330de967b sysprof: make escape stop the current profiler 2019-05-29 15:13:01 -07:00
9d7dc9cfeb tweak text 2019-05-29 15:13:01 -07:00
a8383832de update title on saves 2019-05-29 15:13:00 -07:00
6edf258732 libsysprof-ui: fix can-save propagation 2019-05-29 15:13:00 -07:00
688b6a2189 libsysprof-ui: wire up can-save propagation 2019-05-29 15:13:00 -07:00
d38ecc1849 libsysprof-ui: wire up a save action
We need this so we have something more simplified for consumers such as
Builder to avoid all the duplicated code.
2019-05-29 15:13:00 -07:00
183d079f2c libsysprof-ui: add stop-recording button 2019-05-29 15:13:00 -07:00
b740652e10 libsysprof-ui: wire up more recording state 2019-05-29 15:13:00 -07:00
386057bdee libsysprof-ui: track status changes in profiler 2019-05-29 15:13:00 -07:00
af07f1bbff cleanup 2019-05-29 15:13:00 -07:00
516eda09ac libsysprof-ui: start on recording info 2019-05-29 15:13:00 -07:00
8f335bc512 libsysprof-ui: wire up recording signal 2019-05-29 15:13:00 -07:00
7e5317cc7e libsysprof-ui: fix child properties for tab labels 2019-05-29 15:13:00 -07:00
6f49ddb0e3 libsysprof-ui: start on open support 2019-05-29 15:13:00 -07:00
691a1bc2b0 libsysprof-ui: start on new tabbed design 2019-05-29 15:13:00 -07:00