diff --git a/media_softlet/agnostic/common/shared/profiler/media_perf_profiler.h b/media_softlet/agnostic/common/shared/profiler/media_perf_profiler.h index da98918f1b1..40cdba58f55 100644 --- a/media_softlet/agnostic/common/shared/profiler/media_perf_profiler.h +++ b/media_softlet/agnostic/common/shared/profiler/media_perf_profiler.h @@ -95,7 +95,7 @@ class MediaPerfProfiler //! \return MOS_STATUS //! MOS_STATUS_SUCCESS if success, else fail reason //! - MOS_STATUS Initialize(void* context, MOS_INTERFACE *osInterface); + virtual MOS_STATUS Initialize(void* context, MOS_INTERFACE *osInterface); //! //! \brief Insert start command of storing performance data @@ -112,7 +112,7 @@ class MediaPerfProfiler //! \return MOS_STATUS //! MOS_STATUS_SUCCESS if success, else fail reason //! - MOS_STATUS AddPerfCollectStartCmd( + virtual MOS_STATUS AddPerfCollectStartCmd( void* context, MOS_INTERFACE *osInterface, std::shared_ptr miItf, @@ -133,23 +133,24 @@ class MediaPerfProfiler //! \return MOS_STATUS //! MOS_STATUS_SUCCESS if success, else fail reason //! - MOS_STATUS AddPerfCollectEndCmd( + virtual MOS_STATUS AddPerfCollectEndCmd( void* context, MOS_INTERFACE *osInterface, std::shared_ptr miItf, MOS_COMMAND_BUFFER *cmdBuffer); - //! - //! \brief Constructor - //! - MediaPerfProfiler(); - //! //! \brief Deconstructor //! virtual ~MediaPerfProfiler(); private: + + //! + //! \brief Constructor + //! + MediaPerfProfiler(); + //! //! \brief Save data to the buffer which store the performance data //! @@ -478,7 +479,7 @@ class MediaPerfProfiler //! \return MOS_STATUS //! MOS_STATUS_SUCCESS if success, else fail reason //! - MOS_STATUS AddPerfCollectStartCmd( + virtual MOS_STATUS AddPerfCollectStartCmd( void* context, MOS_INTERFACE *osInterface, MhwMiInterface *miInterface, @@ -499,7 +500,7 @@ class MediaPerfProfiler //! \return MOS_STATUS //! MOS_STATUS_SUCCESS if success, else fail reason //! - MOS_STATUS AddPerfCollectEndCmd( + virtual MOS_STATUS AddPerfCollectEndCmd( void* context, MOS_INTERFACE *osInterface, MhwMiInterface *miInterface,