Added some debugging for queues. Temporary change

dsg
Dan Lake 2011-03-14 12:52:10 -07:00
parent b1114dcb98
commit 3bdc04acf3
2 changed files with 15 additions and 2 deletions

View File

@ -245,6 +245,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Watchdog.StartThread(IncomingPacketHandler, "Incoming Packets (" + m_scene.RegionInfo.RegionName + ")", ThreadPriority.Normal, false);
Watchdog.StartThread(OutgoingPacketHandler, "Outgoing Packets (" + m_scene.RegionInfo.RegionName + ")", ThreadPriority.Normal, false);
m_elapsedMSSinceLastStatReport = Environment.TickCount;
System.Timers.Timer packet_type_timer = new System.Timers.Timer(10000);
packet_type_timer.Elapsed +=new System.Timers.ElapsedEventHandler(packet_type_timer_Elapsed);
packet_type_timer.AutoReset = true;
packet_type_timer.Start();
}
void packet_type_timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
for (int i = 0; i < 8; ++i)
m_log.WarnFormat("OutgoingPacket type {0} count = {1}", i, OutgoingPacket.CatCounts[i]);
}
public new void Stop()

View File

@ -53,6 +53,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// <summary>Category this packet belongs to</summary>
public ThrottleOutPacketType Category;
public static int[] CatCounts = new int[8];
/// <summary>
/// Default constructor
/// </summary>
@ -65,6 +67,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Client = client;
Buffer = buffer;
Category = category;
CatCounts[(int)category]++;
}
}
}