Commit Graph

25 Commits

Author SHA1 Message Date
52f411e1de memory: add memory source for basic mem stats 2018-10-12 17:11:42 -07:00
64ce198a07 Add translator comments 2018-09-25 20:43:48 +02:00
cdd9a64177 cat: protect against writing binary to TTY 2018-05-29 16:05:47 -07:00
b3bf7968ad capture: avoid GObject in libsysprof-capture-2.a
The point of this file was to be easily usable by applications that want
to generate capture files (or proxy them). The intention here is that we
only have SpCaptureReader/SpCaptureWriter (and associated bits necessary
to support that).

This makes sure that we do not use GObject from the libsysprof-capture-2.a
while still having GType's in the libsysprof-2.so dynamic library.

We also invert the GObject macro check so that the default is to not
register a GType which increases the chances that copy/paste code does
not run into double-registering a GType if used with an application that
links against libsysprof-2. (One such example could be if Gtk uses this
code for timers, as it would break Sysprof itself).
2018-05-21 13:52:16 -07:00
4d6a8d8082 tools: add utility to cat together sysprof streams
This currently isn't installed, but it is useful for joining streams
together when working on sysprof data acquisition. We may want to install
it at some point in the future.

sysprof-cat file1 file2 file3 > out.syscap
2018-05-18 11:29:27 +01:00
896bbaea89 Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
2018-05-16 18:12:56 +02:00
b7696198bf tools: add more time data to the event dump 2018-05-16 12:44:48 +01:00
91a45b3313 dump: print group name for mark 2018-05-16 12:44:48 +01:00
4bdbf130b2 capture: add simple mark support
The goal here is to have an API that allows us to record things like
frame timing data. We might iterate on this API a bit, but this gets us
started.

A SpCaptureMark with a zero duration should be treated like an epoch mark
once a visualizer is created. SpCaptureMark with a non-zero duration should
be treated like a begin/end of operation. This may be useful in generating
something like a flame graph.
2018-05-14 17:15:57 +01:00
469d54df5b build: add libsysprof-capture-2 static library
This allows external tooling to write capture files that Sysprof can open.
Ideally, this will get used by GJS in the near future to implement profiler
output for Sysprof.
2018-01-20 01:30:39 -08:00
c47822b26e source tree cleanup
The lib/ directory was getting a bit out of hand, so this tries
to organize things a bit so it is easier going forward to locate
the code people want to patch.
2017-09-28 16:23:03 -07:00
3e5a2af1b4 build: remove autotools build system
Now that we are post-3.26, we are removing the legacy autotools
build system in favor of meson.

Please report any errors you have so that we can ensure this is
ready for GNOME 3.28.
2017-09-15 17:44:50 -07:00
ce9cd3ed43 build: Include meson files in dist 2016-12-01 02:47:03 -05:00
52bc856be4 build: Add support for Meson 2016-12-01 02:34:11 -05: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
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
99ff8f2a5c wip: visualizers 2016-09-23 19:18:36 -07:00
113baca655 build: fix a few warnings from clang 2016-04-28 04:00:27 -07:00
88cc6485dd dump: add more info on various events 2016-04-15 04:51:23 -07:00
5356863f2e dump: implement capture dump for ctrdef and ctrset frames 2016-04-14 21:35:37 -07:00
bdf888f556 cli: add --version command line option 2016-04-14 03:31:33 -07:00
88d3ae3b74 profiler: extract SpProfiler into an interface
It would be nice to be able to support a remote profiler session in the
future, so add SpLocalProfiler implementation of SpProfiler interface.
2016-04-14 02:37:28 -07:00
5d25b8a242 build: be a bit more flexible with configuration options
It would be nice if we can be a bit more flexible with where the
sysprof-cli tool can run. Lets try to break out the system checks a
bit more.
2016-04-14 00:59:28 -07:00
29c4ec495f Land Sysprof 2.x
This is a major redesign a modernization of Sysprof. The core data
structures and design are largely the same, but it has been ported to
Gtk3 and has lots of additions that should make your profiling experience
smoother. Especially for those that are new to profiling.

There are some very simple help docs added, but we really need the
experts to come in and write some documentation here.
2016-04-13 05:24:03 -07:00
2ea0287f89 move source around in preparation to land sysprof2 2016-04-13 05:10:31 -07:00