Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Removes profiling. Streamlines core TickCount. #1948

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions Projects/Application/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ public class Application
{
public static void Main(string[] args)
{
bool profiling = false;

foreach (var a in args)
{
if (a.InsensitiveEquals("-profile"))
{
profiling = true;
}
}

Core.Setup(profiling, Assembly.GetEntryAssembly(), Process.GetCurrentProcess());
Core.Setup(Assembly.GetEntryAssembly(), Process.GetCurrentProcess());
}
}
13 changes: 0 additions & 13 deletions Projects/Server.Tests/Helpers/Packet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Buffers;
using System.Diagnostics;
using System.IO;
using Server.Diagnostics;

namespace Server.Network
{
Expand All @@ -19,12 +18,6 @@ public abstract class Packet
protected Packet(int packetID)
{
PacketID = packetID;

if (Core.Profiling)
{
var prof = PacketSendProfile.Acquire(PacketID);
prof.Increment();
}
}

protected Packet(int packetID, int length)
Expand All @@ -34,12 +27,6 @@ protected Packet(int packetID, int length)

Stream = PacketWriter.CreateInstance(length); // new PacketWriter( length );
Stream.Write((byte)packetID);

if (Core.Profiling)
{
var prof = PacketSendProfile.Acquire(PacketID);
prof.Increment();
}
}

public int PacketID { get; }
Expand Down
79 changes: 0 additions & 79 deletions Projects/Server/Diagnostics/BaseProfile.cs

This file was deleted.

88 changes: 0 additions & 88 deletions Projects/Server/Diagnostics/PacketProfile.cs

This file was deleted.

31 changes: 0 additions & 31 deletions Projects/Server/Diagnostics/TargetProfile.cs

This file was deleted.

44 changes: 0 additions & 44 deletions Projects/Server/Diagnostics/TimerProfile.cs

This file was deleted.

Loading
Loading