mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 17:50:32 +01:00
pps: On data source register, report all counters as enabled by default
Note: when the data source is first registered, no counters are enabled yet so `driver->enabled_counters` actually cannot be used. Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40233>
This commit is contained in:
parent
9f2215b480
commit
a1e89cc1f1
1 changed files with 2 additions and 1 deletions
|
|
@ -187,6 +187,7 @@ template <typename GpuCounterDescriptor> void add_descriptors(GpuCounterDescript
|
|||
break;
|
||||
}
|
||||
spec->add_numerator_units(units);
|
||||
spec->set_select_by_default(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -384,7 +385,7 @@ void GpuDataSource::register_data_source(const std::string &driver_name)
|
|||
// Start a counter descriptor
|
||||
perfetto::protos::gen::GpuCounterDescriptor desc;
|
||||
auto &groups = driver->groups;
|
||||
auto &counters = driver->enabled_counters;
|
||||
auto &counters = driver->counters;
|
||||
add_descriptors(&desc, groups, counters, *driver);
|
||||
dsd.set_gpu_counter_descriptor_raw(desc.SerializeAsString());
|
||||
Register(dsd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue