/// <summary> /// Construct a trace replay. /// </summary> /// <param name="fn">The filename of the trace to play back</param> /// <exception cref="IOException">If anything is wrong with the file.</exception> protected TraceProcessorBase(string fn) { FileName = fn; MetaData = new TraceMeta(); MetaData.Load(fn); // Don't mmap the file right away, do so lazily to avoid locking the file handle for updates in other parts of the UI. }
public TraceTranscoder(Stream outStream) { MetaData = new TraceMeta(); m_Out = new BinaryWriter(outStream, Encoding.UTF8, /*leaveOpen:*/ true); // Reserve space for two offsets used when decoding. m_Out.Write((ulong)0); m_Out.Write((ulong)0); }
internal TraceListItem(string fn, TraceMeta meta, TraceRecorder recorder) { m_FileName = fn; Meta = meta; Recorder = recorder; }
public LiveTraceAnalyzer(TraceMeta meta) { m_MetaData = meta; }
void ITraceFileHandler.OnRecordingProgress(object context, TraceMeta meta) { this.BeginInvoke((Action)delegate() { m_TraceList.UpdateObject(context); }); }
object ITraceFileHandler.OnRecordingStarted(string filename, TraceMeta meta, TraceRecorder recorder) { var item = new TraceListItem(filename, meta, recorder); this.Invoke((Action)delegate() { m_TraceItems.Add(item); m_TraceList.SetObjects(m_TraceItems); }); return item; }