Skip to content

Commit

Permalink
[CP] Make functions of media perf profiler virtual
Browse files Browse the repository at this point in the history
Making these functions virtual so that they can be called from other dlls. Another commit will feature the interop of media_perf_profiler in CP.
  • Loading branch information
JunjiaChen authored and intel-mediadev committed Nov 3, 2023
1 parent 816b1ad commit af1cac3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions media_softlet/agnostic/common/shared/profiler/media_perf_profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<mhw::mi::Itf> miItf,
Expand All @@ -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<mhw::mi::Itf> 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
//!
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit af1cac3

Please sign in to comment.