Example #1
0
 private void HandleFileIoName(FileIONameTraceData data)
 {
     if (data.ProcessID == pid)
     {
         traceOutput.WriteLine($"{data.TimeStampRelativeMSec:0.0000} ({data.ProcessID}.{data.ThreadID}) {data.EventName} '{data.FileName}' (0x{data.FileKey:X})");
     }
 }
Example #2
0
        private void HandleFileIoName(FileIONameTraceData data)
        {
            if (data.ProcessID == pid)
            {
                string fileName   = data.FileName;
                ulong  fileObject = data.FileKey;

                if (!fileObjectToFileNameMap.ContainsKey(fileObject))
                {
                    fileObjectToFileNameMap.Add(fileObject, fileName);
                }

                traceOutput.Write(data.TimeStampRelativeMSec, data.ProcessID, data.ThreadID, data.EventName, $"'{fileName}' (0x{data.FileKey:X})");
            }
        }