@@ -637,7 +637,7 @@ MetricQueryPool *MetricQueryPool::fromHandle(zet_metric_query_pool_handle_t hand
637637
638638zet_metric_query_pool_handle_t MetricQueryPool::toHandle () { return this ; }
639639
640- ze_result_t OaMetricQueryPoolImp::createMetricQuery (uint32_t index,
640+ ze_result_t OaMetricQueryPoolImp::metricQueryCreate (uint32_t index,
641641 zet_metric_query_handle_t *phMetricQuery) {
642642
643643 if (index >= description.count ) {
@@ -914,36 +914,6 @@ ze_result_t OaMetricQueryImp::writeSkipExecutionQuery(CommandList &commandList,
914914 return result ? ZE_RESULT_SUCCESS : ZE_RESULT_ERROR_UNKNOWN;
915915}
916916
917- ze_result_t MetricQuery::appendStreamerMarker (CommandList &commandList,
918- zet_metric_streamer_handle_t hMetricStreamer,
919- uint32_t value) {
920-
921- DeviceImp *pDeviceImp = static_cast <DeviceImp *>(commandList.device );
922-
923- if (pDeviceImp->metricContext ->isImplicitScalingCapable ()) {
924- // Use one of the sub-device contexts to append to command list.
925- pDeviceImp = static_cast <DeviceImp *>(pDeviceImp->subDevices [0 ]);
926- pDeviceImp->metricContext ->getMetricSource <OaMetricSourceImp>().getMetricsLibrary ().enableWorkloadPartition ();
927- }
928-
929- OaMetricSourceImp &metricSource = pDeviceImp->metricContext ->getMetricSource <OaMetricSourceImp>();
930- auto &metricsLibrary = metricSource.getMetricsLibrary ();
931-
932- const uint32_t streamerMarkerHighBitsShift = 25 ;
933-
934- // Obtain gpu commands.
935- CommandBufferData_1_0 commandBuffer = {};
936- commandBuffer.CommandsType = ObjectType::MarkerStreamUser;
937- commandBuffer.MarkerStreamUser .Value = value;
938- commandBuffer.MarkerStreamUser .Reserved = (value >> streamerMarkerHighBitsShift);
939- commandBuffer.Type = metricSource.isComputeUsed ()
940- ? GpuCommandBufferType::Compute
941- : GpuCommandBufferType::Render;
942-
943- return metricsLibrary.getGpuCommands (commandList, commandBuffer) ? ZE_RESULT_SUCCESS
944- : ZE_RESULT_ERROR_UNKNOWN;
945- }
946-
947917MetricQuery *MetricQuery::fromHandle (zet_metric_query_handle_t handle) {
948918 return static_cast <MetricQuery *>(handle);
949919}
0 commit comments