Class CsvFileTraceWriter
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
outputDirstringBase output directory or null for current dir.
separatorstringThe 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
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
intervalIPerfIntervalThe event time interval.
devicestringThe input device name (mouse, keyboard, touch, ..).
idstring(Optional) Repository entry id.
namestring(Optional) Repository entry name.
typestringInput type (up, down, click, press, sequence, ..).
repeatsintNumber of input action repeats (if applicable).
inputTimeintThe nominal time for the input action.
TraceMisc(IPerfInterval, string, string)
Trace misc action.
public void TraceMisc(IPerfInterval interval, string type, string extra)
Parameters
intervalIPerfIntervalThe event time interval.
typestringEvent type.
extrastringOptional 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
intervalIPerfIntervalThe event time interval.
namestringFull repository entry name.
idstringRepository entry id.
pathstringAbsolute repository entry path.
timeoutintRepository entry search timeout.
itersintSearch iterations for repo searches with timeout.
lastSearchTimeintSearch time for last successful search iteration (ms).
successboolSearch success.