解説 Windowsã«ä»å±ããperfmon.exeã§èª¿ã¹ããã¨ã®ã§ããããã©ã¼ãã³ã¹ã«ã¦ã³ã¿ã¼å¤ï¼CPU使ç¨éãå種ã¡ã¢ãªä½¿ç¨éãä»ï¼ã®ç¾å¨ã®ããã»ã¹ã«é¢ããå¤ãåå¾ããé¢æ°ã¯ãä»ã®ã¨ããæ¨æºã§ã¯ç¨æããã¦ããªãï¼ãããªï¼ã®ã§ãèªä½ãã¾ãã å®è£ å 容ã¨ãã¦ã¯ã PdhEnumObjectItems ãç¨ãã¦ãã¤ã³ã¹ã¿ã³ã¹ãªã¹ããåå¾ãã¾ãã ã¤ã³ã¹ã¿ã³ã¹ãªã¹ãã®åã¤ã³ã¹ã¿ã³ã¹ã«é¢ãã¦ãããã»ã¹IDãåå¾ãã¾ãã ããã»ã¹IDå¤ããç¾å¨ã®ããã»ã¹ã®ããã»ã¹IDã¨ä¸è´ããã¤ã³ã¹ã¿ã³ã¹ãæ¢ããã¨ã§ãç¾å¨ã®ããã»ã¹ã®ã¤ã³ã¹ã¿ã³ã¹åãæ±ãã¾ãã PdhMakeCounterPath ãç¨ãã¦ãç¾å¨ã®ããã»ã¹ã®ã¤ã³ã¹ã¿ã³ã¹åã¨å種ã«ã¦ã³ã¿ã¼åã¨ãããã«ã¦ã³ã¿ã¼ãã¹ãä½æãã¾ãã PdhCollectQueryData ãç¨ãã¦ãä½æããã«ã¦ã³ã¿ã¼ãã¹ãããç¾å¨ã®ããã»ã¹ã®ã¤ã³ã¹ã¿ã³ã¹åã«é¢ããå種ã
{{#tags}}- {{label}}
{{/tags}}