Commit Graph

17 Commits

Author SHA1 Message Date
52f411e1de memory: add memory source for basic mem stats 2018-10-12 17:11:42 -07:00
7cb15d2de7 perf: fix incorrect free func for ptr array 2018-06-19 14:19:44 -07:00
f11bc530c3 hostinfo: fix pid parameter 2018-06-17 23:43:41 -07:00
c9c86ff37a hostinfo: up the sample rate
Now that our CPU sampling has a bit less overhead, we can up the sampling
rate a bit without too much affect on performance.
2018-06-16 20:07:38 -07:00
9665cebbdc hostinfo: reuse proc FD and memory when parsing
Re-opening the FD on every poll is pretty expensive. So we should avoid
doing that as well re-use the read buffer (page-aligned, <=1 page) for
the sample data.
2018-06-16 19:50:44 -07:00
23a0cebfe2 sources/perf: Disable the broken i915 tracepoints for now.
I need to build a new kernel and test the tracepoints, but disable
these for the moment to prevent people from getting surprising garbage
timelines.
2018-05-17 19:36:01 +01:00
851e593ae5 hostinfo: fix cpu/pid parameters for setting cpu counters
We don't need pid here anyway, since we're just passing on counters for the
system itself.
2018-05-17 11:04:23 +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
a61703d7e5 sources/perf: Add drm/i915 GPU begin/end times. 2018-05-16 14:27:38 +01:00
a3bda35b28 sources/perf: Capture the CRTC number and MSC for vblank events.
This will help make sense of vblank events in a multi-screen
environment (where there are two streams of vblanks), and hopefully
also useful for correlating to compositor events.
2018-05-16 14:27:33 +01:00
ac11f0f941 sources/perf: Capture DRM vblank events as a mark.
This should be useful to visualize system-wide events in the CPU
timeline, especially once we add some more events.

We may want to define some modes eventually, as not all captures will
care about GPU visualization.  However, it's pretty low overhead (60Hz
* number of monitors), so maybe we can just filter it out at
visualization time.

We do a bit more setup work than necessary here (looking up the config
number for the tracepoint per CPU, rather than looking it up once at
startup), but I suspect I'll want to refactor the init anyway once we
add more tracepoint markers.
2018-05-16 10:52:28 +01:00
925dadce82 sources/perf: Include the sample identifier in PERF_RECORD_SAMPLE.
If we want to start watching other perf events, we need a way to look
up what perf event we got when a PERF_RECORD_SAMPLE comes in.  The
sample identifier is what does that.
2018-05-16 10:52:28 +01:00
83b75e6528 sources/perf: Add an explanatory comment for the CPU loop.
I stumbled over this kernel restriction, too.
2018-05-16 10:52:28 +01:00
380995fde5 sources/perf: Add a comment explaining sp-perf-counter structs. 2018-05-16 10:52:28 +01:00
00b6892a72 build: fix header installation paths 2017-09-28 17:45:07 -07:00
190faa818d build: use subdir meson.build files
This keeps the build file closer to the sources it effects.
2017-09-28 16:57:00 -07: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