mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-30 23:27:24 +01:00 
			
		
		
		
	Switch back to profile. hotshot is wonky
This commit is contained in:
		
							parent
							
								
									cf124a2f2b
								
							
						
					
					
						commit
						06afd9ff3d
					
				| @ -323,10 +323,9 @@ if __name__ == '__main__': | ||||
|             log.error('Error opening pid file %s: %s', pidFile, e) | ||||
| 
 | ||||
|     if options.profile: | ||||
|         import hotshot | ||||
|         profiler = hotshot.Profile('%s-%i.prof' % (nick, time.time())) | ||||
|         import profile | ||||
|         world.profiling = True | ||||
|         profiler.run('main()') | ||||
|         profile.run('main()', '%s-%i.prof' % (nick, time.time())) | ||||
|     else: | ||||
|         main() | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Vega
						James Vega