Class PerfTracing
Controls performance tracing settings for various Ranorex subsystems.
public static class PerfTracing
- Inheritance
-
PerfTracing
- Inherited Members
Properties
ActiveTracers
The currently active performance tracers.
public static PerfTracers ActiveTracers { get; }
Property Value
PreviousInterval
The most recent interval tracked by PerfTracing
public static IPerfInterval PreviousInterval { get; }
Property Value
Methods
Setup(ITraceWriter, PerfTracers)
Setup and activate performance tracing using a custom trace writer.
public static void Setup(ITraceWriter customWriter, PerfTracers tracers)
Parameters
customWriterITraceWriterA custom trace writer implementing ITraceWriter.
tracersPerfTracersThe tracers to activate.
SetupCsv(PerfTracers, string, string)
Setup and activate performance tracing using a CSV file.
public static void SetupCsv(PerfTracers tracers, string baseDir = null, string csvSeparator = ",")
Parameters
tracersPerfTracersThe tracers to activate.
baseDirstringThe base directory for the trace files.
csvSeparatorstringThe separator character to use for CSV output.
TraceKeyboardInput(IPerfInterval, IReportMetadata, string, Duration)
Traces performance information related to a keyboard input action.
public static void TraceKeyboardInput(IPerfInterval interval, IReportMetadata reportMetadata, string type, Duration pressTime)
Parameters
intervalIPerfIntervalThe performance interval to trace.
reportMetadataIReportMetadataReport metadata related to to this input action (e.g. a RepoItemInfo or RepoGenBaseFolder.
typestringThe type of input action taken (e.g. press, up, down, sequence, ..)
pressTimeDurationThe key press time configured for this action.
TraceMisc(IPerfInterval, string, string)
Traces performance information related to a generic action or event.
public static void TraceMisc(IPerfInterval interval, string type, string extra)
Parameters
intervalIPerfIntervalThe performance interval to trace.
typestringThe type of action or event traced.
extrastringExtra information pertaining to this event or action.
TraceMouseInput(IPerfInterval, IReportMetadata, string, MouseButtons, int, Duration)
Traces performance information related to a mouse input action.
public static void TraceMouseInput(IPerfInterval interval, IReportMetadata reportMetadata, string type, MouseButtons buttons, int repeats, Duration moveTime)
Parameters
intervalIPerfIntervalThe performance interval to trace.
reportMetadataIReportMetadataReport metadata related to to this input action (e.g. a RepoItemInfo or RepoGenBaseFolder.
typestringThe type of input action taken (e.g. click, down, move, ..)
buttonsMouseButtonsThe mouse buttons involved in the input action.
repeatsintThe number of repeats for this action (e.g. two for a double-click)
moveTimeDurationThe mouse move time configured for this action.
TraceRepoFolder(IPerfInterval, RepoGenBaseFolder, Duration, int, bool)
Traces performance information related to a repository folder.
public static void TraceRepoFolder(IPerfInterval interval, RepoGenBaseFolder folder, Duration actualSearchTime, int iters, bool success)
Parameters
intervalIPerfIntervalThe performance interval to trace.
folderRepoGenBaseFolderThe repository folder to trace.
actualSearchTimeDurationThe actual time spent searching for folder.
itersintNumber of iterations needed for finding the folder.
successboolWhether the search operation was a success or not.
TraceRepoItem(IPerfInterval, RepoItemInfo, Duration, int, bool)
Traces performance information related to a repository item.
public static void TraceRepoItem(IPerfInterval interval, RepoItemInfo item, Duration actualSearchTime, int iters, bool success)
Parameters
intervalIPerfIntervalThe performance interval to trace.
itemRepoItemInfoThe repository item info to trace.
actualSearchTimeDurationThe actual time spent searching for item.
itersintNumber of iterations needed for finding the item.
successboolWhether the search operation was a success or not.