Пример #1
0
        /// <inheritdoc />
        public ulong?GetActivePeakMemoryUsage()
        {
            try
            {
                if (Process == null || Process.HasExited)
                {
                    return(null);
                }

                return(Dispatch.GetActivePeakMemoryUsage(Process.Handle, ProcessId));
            }
            catch (Exception)
            {
                return(null);
            }
        }
Пример #2
0
        /// <inheritdoc />
        public ulong?GetActivePeakMemoryUsage()
        {
            try
            {
                if (Process == null || Process.HasExited)
                {
                    return(null);
                }

                return(Dispatch.GetActivePeakMemoryUsage(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
        }