Added some debugging for queues. Temporary change
parent
7a89cf5a68
commit
7bcab8e975
|
@ -245,7 +245,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
Watchdog.StartThread(IncomingPacketHandler, "Incoming Packets (" + m_scene.RegionInfo.RegionName + ")", ThreadPriority.Normal, false);
|
Watchdog.StartThread(IncomingPacketHandler, "Incoming Packets (" + m_scene.RegionInfo.RegionName + ")", ThreadPriority.Normal, false);
|
||||||
Watchdog.StartThread(OutgoingPacketHandler, "Outgoing Packets (" + m_scene.RegionInfo.RegionName + ")", ThreadPriority.Normal, false);
|
Watchdog.StartThread(OutgoingPacketHandler, "Outgoing Packets (" + m_scene.RegionInfo.RegionName + ")", ThreadPriority.Normal, false);
|
||||||
m_elapsedMSSinceLastStatReport = Environment.TickCount;
|
m_elapsedMSSinceLastStatReport = Environment.TickCount;
|
||||||
System.Timers.Timer packet_type_timer = new System.Timers.Timer(10000);
|
System.Timers.Timer packet_type_timer = new System.Timers.Timer(60000);
|
||||||
packet_type_timer.Elapsed +=new System.Timers.ElapsedEventHandler(packet_type_timer_Elapsed);
|
packet_type_timer.Elapsed +=new System.Timers.ElapsedEventHandler(packet_type_timer_Elapsed);
|
||||||
packet_type_timer.AutoReset = true;
|
packet_type_timer.AutoReset = true;
|
||||||
packet_type_timer.Start();
|
packet_type_timer.Start();
|
||||||
|
@ -253,7 +253,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
void packet_type_timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
void packet_type_timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 8; ++i)
|
for (int i = 0; i < 9; ++i)
|
||||||
m_log.WarnFormat("OutgoingPacket type {0} count = {1}", i, OutgoingPacket.CatCounts[i]);
|
m_log.WarnFormat("OutgoingPacket type {0} count = {1}", i, OutgoingPacket.CatCounts[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
/// <summary>Category this packet belongs to</summary>
|
/// <summary>Category this packet belongs to</summary>
|
||||||
public ThrottleOutPacketType Category;
|
public ThrottleOutPacketType Category;
|
||||||
|
|
||||||
public static int[] CatCounts = new int[8];
|
public static int[] CatCounts = new int[9];
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default constructor
|
/// Default constructor
|
||||||
|
@ -67,6 +67,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
Client = client;
|
Client = client;
|
||||||
Buffer = buffer;
|
Buffer = buffer;
|
||||||
Category = category;
|
Category = category;
|
||||||
|
if (category == ThrottleOutPacketType.Unknown)
|
||||||
|
CatCounts[8]++;
|
||||||
|
else
|
||||||
CatCounts[(int)category]++;
|
CatCounts[(int)category]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue