perfetto/android: align datasource names with tooling expectations
A few Android tools are based on/assume the datasource names gpu.renderstages and gpu.counters. It is less effort to align with that naming for Android builds than to chase down those tools and fix them, not to mention account for new tools that may be created in the future. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34330>
This commit is contained in:
committed by
Marge Bot
parent
b895c0ec05
commit
7190949927
@@ -8,6 +8,7 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "util/detect_os.h"
|
||||
#include "pps_datasource.h"
|
||||
#include "pps_driver.h"
|
||||
|
||||
@@ -147,7 +148,12 @@ void GpuDataSource::register_data_source(const std::string &_driver_name)
|
||||
{
|
||||
driver_name = _driver_name;
|
||||
static perfetto::DataSourceDescriptor dsd;
|
||||
#if DETECT_OS_ANDROID
|
||||
// Android tooling expects this data source name
|
||||
dsd.set_name("gpu.counters");
|
||||
#else
|
||||
dsd.set_name("gpu.counters." + driver_name);
|
||||
#endif
|
||||
Register(dsd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user