Popular Posts
CORS in Asp.net MVC Web API v2 Step 1. Install cors from NeGet Step 2. Enable cors in config using System; using System.Collections.Generic; using System.Linq; using ... EL 隱式物件 類別 識別符號 描述 JSP pageContext PageContext 實例對應於目前頁面的處理 作用網域 pageScope 與頁面作用網域屬性的名稱和值相... Display soap message in axis client client-config.wsdd : should be placed in the root of classpath <?xml version="1.0" encoding="UTF-8"?> <deploy...
Blog Archive
Stats
Memory usage
If you want to know how much the GC uses try:
GC.GetTotalMemory(true)
If you want to know what your process uses from Windows (VM Size column in TaskManager) try:
Process.GetCurrentProcess().PrivateMemorySize64
If you want to know what your process has in RAM (as opposed to in the pagefile) (Mem Usage column in TaskManager) try:
Process.GetCurrentProcess().WorkingSet64
See here for more explanation on the different sorts of memory.