Module: Mesa
Branch: main
Commit: 25edfcdb2aec4ac0686f0a5bda673e610de5da71
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=25edfcdb2aec4ac0686f0a5bda673e610de5da71

Author: Emma Anholt <[email protected]>
Date:   Tue Jan 10 10:34:41 2023 -0800

perfetto: Add the intel data sources to system.cfg.

Now I don't need to remember different perfetto setups depending on which
system I'm profiling.

Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20658>

---

 src/tool/pps/cfg/system.cfg | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/src/tool/pps/cfg/system.cfg b/src/tool/pps/cfg/system.cfg
index 824fad26a1e..f875c7f870b 100644
--- a/src/tool/pps/cfg/system.cfg
+++ b/src/tool/pps/cfg/system.cfg
@@ -18,6 +18,21 @@ data_sources {
   }
 }
 
+data_sources {
+  config {
+    name: "gpu.counters.i915"
+    gpu_counter_config {
+      counter_period_ns: 100000
+    }
+  }
+}
+
+data_sources {
+  config {
+    name: "gpu.renderstages.intel"
+  }
+}
+
 data_sources {
   config {
     name: "track_event"
@@ -96,6 +111,16 @@ data_sources {
   }
 }
 
+data_sources {
+  config {
+    name: "track_event"
+    track_event_config {
+      enabled_categories: "mesa.default"
+      enabled_categories: "mesa.slow"
+    }
+  }
+}
+
 data_sources {
   config {
     name: "perfetto.metatrace"

Reply via email to