예제 #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
        }