/[pcsx2_0.9.7]/trunk/pcsx2/windows/SamplProf.cpp
ViewVC logotype

Diff of /trunk/pcsx2/windows/SamplProf.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/pcsx2/windows/SamplProf.cpp	2010/12/23 11:48:33	279
+++ trunk/pcsx2/windows/SamplProf.cpp	2010/12/23 12:02:12	280
@@ -119,40 +119,47 @@
 	return false;
 }
 
-void ProfilerRegisterSource(const char* Name, const void* buff, u32 sz)
+void ProfilerRegisterSource(const wxString& Name, const void* buff, u32 sz)
 {
 	if( ProfRunning )
 		EnterCriticalSection( &ProfModulesLock );
 
-	wxString strName( fromUTF8(Name) );
-	if( !_registeredName( strName ) )
-		ProfModules.push_back( Module( strName, buff, sz ) );
+	if( !_registeredName( Name ) )
+		ProfModules.push_back( Module( Name, buff, sz ) );
 
 	if( ProfRunning )
 		LeaveCriticalSection( &ProfModulesLock );
 }
 
-void ProfilerRegisterSource(const char* Name, const void* function)
+void ProfilerRegisterSource(const wxString& Name, const void* function)
 {
 	if( ProfRunning )
 		EnterCriticalSection( &ProfModulesLock );
 
-	wxString strName( fromUTF8(Name) );
-	if( !_registeredName( strName ) )
-		ProfModules.push_back( Module(strName,function) );
+	if( !_registeredName( Name ) )
+		ProfModules.push_back( Module(Name,function) );
 
 	if( ProfRunning )
 		LeaveCriticalSection( &ProfModulesLock );
 }
 
-void ProfilerTerminateSource( const char* Name )
+void ProfilerRegisterSource(const char* Name, const void* buff, u32 sz)
+{
+	ProfilerRegisterSource( fromUTF8(Name), buff, sz );
+}
+
+void ProfilerRegisterSource(const char* Name, const void* function)
+{
+	ProfilerRegisterSource( fromUTF8(Name), function );
+}
+
+void ProfilerTerminateSource( const wxString& Name )
 {
-	wxString strName( fromUTF8(Name) );
 	for( vector<Module>::const_iterator
 		iter = ProfModules.begin(),
 		end = ProfModules.end(); iter<end; ++iter )
 	{
-		if( iter->name.compare( strName ) == 0 )
+		if( iter->name.compare( Name ) == 0 )
 		{
 			ProfModules.erase( iter );
 			break;
@@ -160,6 +167,11 @@
 	}
 }
 
+void ProfilerTerminateSource( const char* Name )
+{
+	ProfilerTerminateSource( fromUTF8(Name) );
+}
+
 static bool DispatchKnownModules( uint Eip )
 {
 	bool retval = false;

 

  ViewVC Help
Powered by ViewVC 1.1.22