restructured and extended performance diagnostics to cover gump and target responses

This commit is contained in:
krrios 2007-04-22 06:08:45 +00:00
parent a8d3bcbec9
commit 5c64b1754c
12 changed files with 569 additions and 401 deletions

View file

@ -34,6 +34,7 @@ using Server.Menus.Questions;
using Server.Prompts;
using Server.HuePickers;
using Server.ContextMenus;
using Server.Diagnostics;
namespace Server.Network
{
@ -3460,10 +3461,11 @@ namespace Server.Network
{
m_PacketID = packetID;
PacketProfile prof = PacketProfile.GetOutgoingProfile( (byte)packetID );
PacketSendProfile prof = PacketSendProfile.Acquire( GetType() );
if ( prof != null )
prof.RegConstruct();
if ( prof != null ) {
prof.Created++;
}
}
public void EnsureCapacity( int length )
@ -3479,12 +3481,13 @@ namespace Server.Network
m_Length = length;
m_Stream = PacketWriter.CreateInstance( length );// new PacketWriter( length );
m_Stream.Write( (byte) packetID );
m_Stream.Write( ( byte ) packetID );
PacketProfile prof = PacketProfile.GetOutgoingProfile( (byte)packetID );
PacketSendProfile prof = PacketSendProfile.Acquire( GetType() );
if ( prof != null )
prof.RegConstruct();
if ( prof != null ) {
prof.Created++;
}
}
public PacketWriter UnderlyingStream