Table of Contents

Class CsvFileTraceWriter

Namespace
Ranorex.Core.Tracing
Assembly
Ranorex.Core.dll

PerfTrace writer which outputs to multiple CSV files.

public sealed class CsvFileTraceWriter : ITraceWriter, IDisposable
Inheritance
CsvFileTraceWriter
Implements
Inherited Members

Constructors

CsvFileTraceWriter(string, string)

Creates a new CsvFileTraceWriter.

public CsvFileTraceWriter(string outputDir, string separator = null)

Parameters

outputDir string

Base output directory or null for current dir.

separator string

The separator character to use or null for comma.

Properties

UnknownLogThresholdMs

Minimum time required for "unknown" event gaps to be added to the trace log.

public static int UnknownLogThresholdMs { get; set; }

Property Value

int

Methods

Initialize()

One-time lazy setup of the writer.

public void Initialize()

TraceInput(IPerfInterval, string, string, string, string, int, int)

Trace input action information.

public void TraceInput(IPerfInterval interval, string device, string id, string name, string type, int repeats, int inputTime)

Parameters

interval IPerfInterval

The event time interval.

device string

The input device name (mouse, keyboard, touch, ..).

id string

(Optional) Repository entry id.

name string

(Optional) Repository entry name.

type string

Input type (up, down, click, press, sequence, ..).

repeats int

Number of input action repeats (if applicable).

inputTime int

The nominal time for the input action.

TraceMisc(IPerfInterval, string, string)

Trace misc action.

public void TraceMisc(IPerfInterval interval, string type, string extra)

Parameters

interval IPerfInterval

The event time interval.

type string

Event type.

extra string

Optional additional event information.

TraceRepoEntry(IPerfInterval, string, string, string, int, int, int, bool)

Trace repository timing information.

public void TraceRepoEntry(IPerfInterval interval, string name, string id, string path, int timeout, int iters, int lastSearchTime, bool success)

Parameters

interval IPerfInterval

The event time interval.

name string

Full repository entry name.

id string

Repository entry id.

path string

Absolute repository entry path.

timeout int

Repository entry search timeout.

iters int

Search iterations for repo searches with timeout.

lastSearchTime int

Search time for last successful search iteration (ms).

success bool

Search success.