swiftlys2/docs/api/ai/
API Reference Profiler

IContextedProfilerService

Interface
Namespace: SwiftlyS2.Shared.Profiler · Assembly: SwiftlyS2.CS2.dll
public interface IContextedProfilerService
View source

Methods

RecordTime(string, double)

Record the time taken for the given profile.

void RecordTime(string name, double duration)
Parameters
  • namestringThe name of the profile to record the time for.
  • durationdoubleThe duration to record.

StartRecording(string)

Start recording a new profile with the given name.

void StartRecording(string name)
Parameters
  • namestringThe name of the profile to start.

StopRecording(string)

Stop recording the profile with the given name.

void StopRecording(string name)
Parameters
  • namestringThe name of the profile to stop.