Пример #1
0
        /// <summary>
        /// Gets active peak memory usage.
        /// </summary>
        public ulong?GetActivePeakWorkingSet()
        {
            try
            {
                if (Process == null || Process.HasExited)
                {
                    return(null);
                }

                return(Dispatch.GetActivePeakWorkingSet(Process.Handle, ProcessId));
            }
#pragma warning disable ERP022 // Unobserved exception in generic exception handler
            catch
            {
                return(null);
            }
#pragma warning restore ERP022 // Unobserved exception in generic exception handler
        }