Exemplo n.º 1
0
        /// <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.
        }