summaryrefslogtreecommitdiff
path: root/src/tool
diff options
context:
space:
mode:
authorAntonio Caggiano <antonio.caggiano@collabora.com>2021-03-22 16:37:27 +0100
committerMarge Bot <eric+marge@anholt.net>2021-05-07 13:41:38 +0000
commitf6be64ef660baaadd84a8542f89993f9d918fb87 (patch)
treebf9c81bb81321e431aabbe9143588d7e63ae0239 /src/tool
parent948f780915502f8f4ddce7b2540fdf8db2d7703c (diff)
downloadmesa-f6be64ef660baaadd84a8542f89993f9d918fb87.tar.gz
mesa-f6be64ef660baaadd84a8542f89993f9d918fb87.tar.bz2
mesa-f6be64ef660baaadd84a8542f89993f9d918fb87.zip
pps: Documentation
Add documentation for Perfetto and Gfx-pps, together with some perfetto config files to use as a starting point. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> Signed-off-by: Rob Clark <robdclark@chromium.org> Acked-by: Emma Anholt <emma@anholt.net> Reviewed-by: John Bates <jbates@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9652>
Diffstat (limited to 'src/tool')
-rw-r--r--src/tool/pps/cfg/cpu.cfg20
-rw-r--r--src/tool/pps/cfg/gpu.cfg29
2 files changed, 49 insertions, 0 deletions
diff --git a/src/tool/pps/cfg/cpu.cfg b/src/tool/pps/cfg/cpu.cfg
new file mode 100644
index 00000000000..0824b2aa6e3
--- /dev/null
+++ b/src/tool/pps/cfg/cpu.cfg
@@ -0,0 +1,20 @@
+buffers {
+ size_kb: 65536
+ fill_policy: RING_BUFFER
+}
+
+data_sources {
+ config {
+ name: "linux.sys_stats"
+ target_buffer: 0
+ sys_stats_config {
+ meminfo_period_ms: 100
+ meminfo_counters: MEMINFO_MEM_AVAILABLE
+
+ stat_period_ms: 100
+ stat_counters: STAT_CPU_TIMES
+ }
+ }
+}
+
+duration_ms: 10000
diff --git a/src/tool/pps/cfg/gpu.cfg b/src/tool/pps/cfg/gpu.cfg
new file mode 100644
index 00000000000..eaef4df402a
--- /dev/null
+++ b/src/tool/pps/cfg/gpu.cfg
@@ -0,0 +1,29 @@
+buffers {
+ size_kb: 1024
+ fill_policy: RING_BUFFER
+}
+
+data_sources {
+ config {
+ name: "gpu.counters.i915"
+ gpu_counter_config {
+ counter_period_ns: 1000000000
+ }
+ counter_ids: 0
+ counter_ids: 1
+ counter_ids: 2
+ counter_ids: 3
+ counter_ids: 4
+ }
+}
+
+data_sources {
+ config {
+ name: "gpu.counters.panfrost"
+ gpu_counter_config {
+ counter_period_ns: 1000000000
+ }
+ }
+}
+
+duration_ms: 16000