[profiler_capture_api] updated ProfilerRequests::StartCapture signature as per PR feedback
Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
@@ -56,7 +56,7 @@ namespace AZ
|
||||
virtual bool CaptureFrame(const AZStd::string& outputFilePath) = 0;
|
||||
|
||||
//! Starting/ending a multi-frame capture of profiling data
|
||||
virtual bool StartCapture(const AZStd::string& outputFilePath) = 0;
|
||||
virtual bool StartCapture(AZStd::string outputFilePath) = 0;
|
||||
virtual bool EndCapture() = 0;
|
||||
};
|
||||
using ProfilerRequestBus = AZ::EBus<ProfilerRequests>;
|
||||
|
||||
@@ -195,9 +195,9 @@ namespace Profiler
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ProfilerSystemComponent::StartCapture(const AZStd::string& outputFilePath)
|
||||
bool ProfilerSystemComponent::StartCapture(AZStd::string outputFilePath)
|
||||
{
|
||||
m_captureFile = outputFilePath;
|
||||
m_captureFile = AZStd::move(outputFilePath);
|
||||
return m_cpuProfiler.BeginContinuousCapture();
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Profiler
|
||||
bool IsActive() const override;
|
||||
void SetActive(bool active) override;
|
||||
bool CaptureFrame(const AZStd::string& outputFilePath) override;
|
||||
bool StartCapture(const AZStd::string& outputFilePath) override;
|
||||
bool StartCapture(AZStd::string outputFilePath) override;
|
||||
bool EndCapture() override;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user