move DotRecast.Core.RcTelemetry

This commit is contained in:
ikpil 2023-07-01 13:05:38 +09:00
parent 8bc3afa2ec
commit 43bfc9a5a0
17 changed files with 19 additions and 7 deletions

View File

@ -19,12 +19,10 @@ freely, subject to the following restrictions:
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using DotRecast.Core;
namespace DotRecast.Recast namespace DotRecast.Core
{ {
public class RcTelemetry public class RcTelemetry
{ {

View File

@ -1,6 +1,6 @@
using System; using System;
namespace DotRecast.Recast namespace DotRecast.Core
{ {
public readonly struct RcTelemetryTick public readonly struct RcTelemetryTick
{ {

View File

@ -43,7 +43,7 @@ namespace DotRecast.Detour.Crowd
return _maxTimeToFindPath; return _maxTimeToFindPath;
} }
public Dictionary<string, long> ExecutionTimings() public Dictionary<string, long> ToExecutionTimings()
{ {
return _executionTimings; return _executionTimings;
} }

View File

@ -16,6 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
using DotRecast.Core;
using DotRecast.Recast; using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using DotRecast.Core;
using DotRecast.Recast; using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/ */
using System; using System;
using DotRecast.Core;
using DotRecast.Recast; using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -16,6 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
using DotRecast.Core;
using DotRecast.Recast; using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/ */
using System; using System;
using DotRecast.Core;
using DotRecast.Recast; using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -21,6 +21,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Linq; using System.Linq;
using DotRecast.Core;
using DotRecast.Detour.Dynamic.Colliders; using DotRecast.Detour.Dynamic.Colliders;
using DotRecast.Detour.Dynamic.Io; using DotRecast.Detour.Dynamic.Io;
using DotRecast.Recast; using DotRecast.Recast;

View File

@ -132,7 +132,7 @@ public class CrowdProfilingTool
ImGui.Text($"Max time to enqueue request: {crowd.Telemetry().MaxTimeToEnqueueRequest()} s"); ImGui.Text($"Max time to enqueue request: {crowd.Telemetry().MaxTimeToEnqueueRequest()} s");
ImGui.Text($"Max time to find path: {crowd.Telemetry().MaxTimeToFindPath()} s"); ImGui.Text($"Max time to find path: {crowd.Telemetry().MaxTimeToFindPath()} s");
List<Tuple<string, long>> timings = crowd.Telemetry() List<Tuple<string, long>> timings = crowd.Telemetry()
.ExecutionTimings() .ToExecutionTimings()
.Select(e => Tuple.Create(e.Key, e.Value)) .Select(e => Tuple.Create(e.Key, e.Value))
.OrderBy(x => x.Item2) .OrderBy(x => x.Item2)
.ToList(); .ToList();

View File

@ -1,4 +1,6 @@
namespace DotRecast.Recast using DotRecast.Core;
namespace DotRecast.Recast
{ {
public class RecastBuilderResult public class RecastBuilderResult
{ {

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/ */
using System; using System;
using DotRecast.Core;
using static DotRecast.Core.RcMath; using static DotRecast.Core.RcMath;
using static DotRecast.Recast.RcConstants; using static DotRecast.Recast.RcConstants;

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using DotRecast.Core;
namespace DotRecast.Recast namespace DotRecast.Recast
{ {

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
*/ */
using System; using System;
using DotRecast.Core;
namespace DotRecast.Recast namespace DotRecast.Recast
{ {

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using DotRecast.Core;
namespace DotRecast.Recast namespace DotRecast.Recast
{ {

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/ */
using System.Collections.Generic; using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Recast.Geom; using DotRecast.Recast.Geom;
namespace DotRecast.Recast namespace DotRecast.Recast

View File

@ -16,6 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
*/ */
using DotRecast.Core;
using NUnit.Framework; using NUnit.Framework;
namespace DotRecast.Recast.Test; namespace DotRecast.Recast.Test;