private void WriteIOData(Native.IO.IOCounters io) { WriteLineIndented("\"io\" : {"); IncrementIndent(); WriteLineIndented("\"read\" : {"); IncrementIndent(); WriteLineIndented(I($"\"operationCount\" : {io.ReadCounters.OperationCount},")); WriteLineIndented(I($"\"transferCountInByte\" : {io.ReadCounters.TransferCount}")); DecrementIndent(); WriteLineIndented("},"); WriteLineIndented("\"write\" : {"); IncrementIndent(); WriteLineIndented(I($"\"operationCount\" : {io.WriteCounters.OperationCount},")); WriteLineIndented(I($"\"transferCountInByte\" : {io.WriteCounters.TransferCount}")); DecrementIndent(); WriteLineIndented("},"); WriteLineIndented("\"other\" : {"); IncrementIndent(); WriteLineIndented(I($"\"operationCount\" : {io.OtherCounters.OperationCount},")); WriteLineIndented(I($"\"transferCountInByte\" : {io.OtherCounters.TransferCount}")); DecrementIndent(); WriteLineIndented("}"); DecrementIndent(); WriteLineIndented("},"); }
/// <summary> /// Called to handle process data. /// </summary> /// <param name="pipId">The pip id</param> /// <param name="pipDescription">The pip description</param> /// <param name="processName">The process name</param> /// <param name="processId">The process id</param> /// <param name="creationDateTime">The creation date and time</param> /// <param name="exitDateTime">The exit date</param> /// <param name="kernelTime">The kernel time</param> /// <param name="userTime">The user time</param> /// <param name="exitCode">The exit code</param> /// <param name="ioCounters">The IO Counters for the process</param> /// <param name="parentProcessId">The parent process id</param> public abstract void HandleProcessData( long pipId, string pipDescription, string processName, uint processId, DateTime creationDateTime, DateTime exitDateTime, TimeSpan kernelTime, TimeSpan userTime, uint exitCode, Native.IO.IOCounters ioCounters, uint parentProcessId);