Beispiel #1
0
        /// <inheritdoc />
        public virtual void Dispose()
        {
            var startTime = m_processExecutor?.StartTime ?? DateTime.UtcNow;
            var exitTime  = m_processExecutor?.ExitTime ?? DateTime.UtcNow;

            var lifetime = DateTime.UtcNow - startTime;
            var cpuTimes = GetCpuTimes();

            LogProcessState(
                $"Process Times: " +
                $"started = {startTime}, " +
                $"exited = {exitTime} (since start = {toSeconds(exitTime - startTime)}s), " +
                $"received reports = {m_reportsReceivedTime} (since start = {toSeconds(m_reportsReceivedTime - startTime)}s), " +
                $"life time = {toSeconds(lifetime)}s, " +
                $"user time = {toSeconds(cpuTimes.User)}s, " +
                $"system time = {toSeconds(cpuTimes.System)}s");
            SandboxedProcessFactory.Counters.AddToCounter(SandboxedProcessFactory.SandboxedProcessCounters.SandboxedProcessLifeTimeMs, (long)lifetime.TotalMilliseconds);
            m_processExecutor?.Dispose();
Beispiel #2
0
 /// <inheritdoc />
 public override void Dispose()
 {
     m_processExecutor?.Dispose();
 }