Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Monitoring//logging memory and cpu usage

Monitoring//logging memory and cpu usage

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformanceloungeworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alan Kurlansky
    wrote on last edited by
    #1

    I realize that this may not be the ideal message board for this question, but it seemed like the best place, so here it is. What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment? -Thanks

    A D 2 Replies Last reply
    0
    • A Alan Kurlansky

      I realize that this may not be the ideal message board for this question, but it seemed like the best place, so here it is. What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment? -Thanks

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      using WMI classes are good for this purpose eg:- http://msdn.microsoft.com/en-us/library/aa390423(VS.85).aspx But if you like to use API then you have a lot of options:-- One such is PSAPI Just refer :- http://msdn.microsoft.com/en-us/library/ms681920(VS.85).aspx. WMI is having high performance, and it has a good extensible event mechanism. But PSAPI is not a bad option , but it wont support Windows 9X:)

      Величие не Бога может быть недооценена.

      1 Reply Last reply
      0
      • A Alan Kurlansky

        I realize that this may not be the ideal message board for this question, but it seemed like the best place, so here it is. What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment? -Thanks

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Alan Kurlansky wrote:

        What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment?

        Is this a coding question, or just a general Windows question? If the latter, use the Performance Monitor (perfmon.msc).

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups