Skip to content

Commit

Permalink
feat: profiler info is available in production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Sep 28, 2019
1 parent 65d81d6 commit 5649cc6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Assets/Mirror/Runtime/NetworkDiagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ internal MessageInfo(IMessageBase message, int channel, int bytes, int count)
/// </summary>
public static event Action<MessageInfo> OutMessageEvent;

// ENABLE_PROFILER is enabled by Unity when enabling profiling.
[Conditional("ENABLE_PROFILER")]
internal static void OnSend<T>(T message, int channel, int bytes, int count) where T : IMessageBase
{
if (count > 0 && OutMessageEvent != null)
Expand All @@ -70,8 +68,6 @@ internal MessageInfo(IMessageBase message, int channel, int bytes, int count)
/// </summary>
public static event Action<MessageInfo> InMessageEvent;

// ENABLE_PROFILER is enabled by Unity when enabling profiling.
[Conditional("ENABLE_PROFILER")]
internal static void OnReceive<T>(T message, int channel, int bytes) where T : IMessageBase
{
if (InMessageEvent != null)
Expand Down

0 comments on commit 5649cc6

Please sign in to comment.