Server.Commands.Profiling.WriteProfiles_OnCommand C# (CSharp) Méthode

WriteProfiles_OnCommand() private méthode

private WriteProfiles_OnCommand ( Server.Commands.CommandEventArgs e ) : void
e Server.Commands.CommandEventArgs
Résultat void
		public static void WriteProfiles_OnCommand( CommandEventArgs e )
		{
			try
			{
				using ( StreamWriter sw = new StreamWriter( "profiles.log", true ) )
				{
					sw.WriteLine( "# Dump on {0:f}", DateTime.Now );
					sw.WriteLine( "# Core profiling for " + Core.ProfileTime );

					sw.WriteLine( "# Packet send" );
					BaseProfile.WriteAll( sw, PacketSendProfile.Profiles );
					sw.WriteLine();

					sw.WriteLine( "# Packet receive" );
					BaseProfile.WriteAll( sw, PacketReceiveProfile.Profiles );
					sw.WriteLine();

					sw.WriteLine( "# Timer" );
					BaseProfile.WriteAll( sw, TimerProfile.Profiles );
					sw.WriteLine();

					sw.WriteLine( "# Gump response" );
					BaseProfile.WriteAll( sw, GumpProfile.Profiles );
					sw.WriteLine();

					sw.WriteLine( "# Target response" );
					BaseProfile.WriteAll( sw, TargetProfile.Profiles );
					sw.WriteLine();
				}
			}
			catch
			{
			}
		}