Skip to content

Commit

Permalink
pcsx2:windows: Remove unused sampling profiler
Browse files Browse the repository at this point in the history
Visual Studio has a much more powerful performance profiler which can do
the same task and more.
  • Loading branch information
turtleli committed Jul 24, 2016
1 parent ed47dca commit 38c802a
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 428 deletions.
2 changes: 0 additions & 2 deletions pcsx2/CMakeLists.txt
Expand Up @@ -150,7 +150,6 @@ set(pcsx2Headers
R5900Exceptions.h
R5900.h
R5900OpcodeTables.h
SamplProf.h
SaveState.h
Sifcmd.h
Sif.h
Expand Down Expand Up @@ -476,7 +475,6 @@ set(pcsx2WindowsSources
windows/DwmSetup.cpp
windows/ini.cpp
windows/PatchBrowser.cpp
windows/SamplProf.cpp
windows/WinCompressNTFS.cpp
windows/WinConsolePipe.cpp
windows/WinSysExec.cpp)
Expand Down
1 change: 0 additions & 1 deletion pcsx2/MTGS.cpp
Expand Up @@ -23,7 +23,6 @@
#include "Gif_Unit.h"
#include "MTVU.h"
#include "Elfheader.h"
#include "SamplProf.h"


// Uncomment this to enable profiling of the GS RingBufferCopy function.
Expand Down
51 changes: 0 additions & 51 deletions pcsx2/SamplProf.h

This file was deleted.

9 changes: 0 additions & 9 deletions pcsx2/System.cpp
Expand Up @@ -20,8 +20,6 @@
#include "newVif.h"
#include "MTVU.h"

#include "SamplProf.h"

#include "Elfheader.h"

#include "System/RecTypes.h"
Expand All @@ -43,8 +41,6 @@ RecompiledCodeReserve::RecompiledCodeReserve( const wxString& name, uint defComm
m_blocksize = (1024 * 128) / __pagesize;
m_prot_mode = PageAccess_Any();
m_def_commit = defCommit / __pagesize;

m_profiler_registered = false;
}

RecompiledCodeReserve::~RecompiledCodeReserve() throw()
Expand All @@ -55,17 +51,12 @@ RecompiledCodeReserve::~RecompiledCodeReserve() throw()
void RecompiledCodeReserve::_registerProfiler()
{
if (m_profiler_name.IsEmpty() || !IsOk()) return;
ProfilerRegisterSource( m_profiler_name, m_baseptr, GetReserveSizeInBytes() );
m_profiler_registered = true;

// Could potentially be integrated into ProfilerRegisterSource
Perf::any.map((uptr)m_baseptr, GetReserveSizeInBytes(), m_profiler_name.ToUTF8());
}

void RecompiledCodeReserve::_termProfiler()
{
if (m_profiler_registered)
ProfilerTerminateSource( m_profiler_name );
}

uint RecompiledCodeReserve::_calcDefaultCommitInBlocks() const
Expand Down
1 change: 0 additions & 1 deletion pcsx2/System/RecTypes.h
Expand Up @@ -34,7 +34,6 @@ class RecompiledCodeReserve : public BaseVmReserveListener
uint m_def_commit;

wxString m_profiler_name;
bool m_profiler_registered;

public:
RecompiledCodeReserve( const wxString& name=wxEmptyString, uint defCommit = 0 );
Expand Down

0 comments on commit 38c802a

Please sign in to comment.