Beispiel #1
0
void FFrameProfiler::Stop()
{
	if (bActive)
	{
		const FStatsThreadState& Stats = FStatsThreadState::GetLocalState();

		Stats.NewFrameDelegate.Remove(OnNewFrameDelegateHandle);

		StatsMasterEnableSubtract();
		bActive = false;


		// @todo JohnB: For the moment, these objects are not tracked after creation, and are responsible for deleting themselves
		delete this;
	}
}
Beispiel #2
0
void FStatsWriteFile::Stop()
{
	if( IsValid() )
	{
		StatsMasterEnableSubtract();
		RemoveNewFrameDelegate();
		SendTask();
		SendTask();
		Finalize();

		File->Close();
		delete File;
		File = nullptr;

		UE_LOG( LogStats, Log, TEXT( "Wrote stats file: %s" ), *ArchiveFilename );
		FCommandStatsFile::LastFileSaved = ArchiveFilename;
	}
}
void FFrameProfiler::Stop()
{
    if (bActive)
    {
        const FStatsThreadState& Stats = FStatsThreadState::GetLocalState();

#if TARGET_UE4_CL >= CL_DEPRECATEDEL
        Stats.NewFrameDelegate.Remove(OnNewFrameDelegateHandle);
#else
        Stats.NewFrameDelegate.RemoveRaw(this, &FFrameProfiler::OnNewFrame);
#endif


        StatsMasterEnableSubtract();
        bActive = false;


        // @todo #JohnB: For the moment, these objects are not tracked after creation, and are responsible for deleting themselves
        delete this;
    }
}