emit messages about performance issues
``perfmon``
emit messages about :ext:`GL_AMD_performance_monitor`
+ ``perf-symbol-names``
+ use performance counter symbols instead of the counter name
+ (counter symbols are like variable names, it's sometimes easier
+ to work with when you have lots of metrics to collect)
``reemit``
mark all state dirty on each draw call
``rt``
after n frames. Currently, only RADV implements this.
.. envvar:: MESA_VK_MEMORY_TRACE_TRIGGER
-
+
enable trigger file-based memory tracing. (e.g.
``export MESA_VK_MEMORY_TRACE_TRIGGER=/tmp/memory_trigger`` and then
``touch /tmp/memory_trigger`` to capture a memory trace).
intel_perf_query_result_clear(&results);
info->group_id = counter_info->location.group_idx;
- info->name = counter->name;
+ info->name = INTEL_DEBUG(DEBUG_PERF_SYMBOL_NAMES) ?
+ counter->symbol_name : counter->name;
info->query_type = PIPE_QUERY_DRIVER_SPECIFIC + index;
if (counter->type == INTEL_PERF_COUNTER_TYPE_THROUGHPUT)
intel_perf_query_result_clear(&results);
- *name = counter->name;
+ *name = INTEL_DEBUG(DEBUG_PERF_SYMBOL_NAMES) ?
+ counter->symbol_name : counter->name;
*desc = counter->desc;
*offset = counter->offset;
*data_size = intel_perf_query_counter_get_size(counter);
{ "mesh", DEBUG_MESH },
{ "stall", DEBUG_STALL },
{ "capture-all", DEBUG_CAPTURE_ALL },
+ { "perf-symbol-names", DEBUG_PERF_SYMBOL_NAMES },
{ NULL, 0 }
};
#define DEBUG_TASK (1ull << 41)
#define DEBUG_MESH (1ull << 42)
#define DEBUG_CAPTURE_ALL (1ull << 43)
+#define DEBUG_PERF_SYMBOL_NAMES (1ull << 44)
#define DEBUG_ANY (~0ull)
vk_outarray_append_typed(VkPerformanceCounterDescriptionKHR, &out_desc, desc) {
desc->flags = 0; /* None so far. */
- snprintf(desc->name, sizeof(desc->name), "%s", intel_counter->name);
+ snprintf(desc->name, sizeof(desc->name), "%s",
+ INTEL_DEBUG(DEBUG_PERF_SYMBOL_NAMES) ?
+ intel_counter->symbol_name :
+ intel_counter->name);
snprintf(desc->category, sizeof(desc->category), "%s", intel_counter->category);
snprintf(desc->description, sizeof(desc->description), "%s", intel_counter->desc);
}