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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Process performance monitor

Process performance monitor

Scheduled Pinned Locked Moved C / C++ / MFC
c++performancetutorialquestion
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.
  • S Offline
    S Offline
    Sandeep Kulkarni
    wrote on last edited by
    #1

    Could anyone pls tell me how to programmatically (VC++/VB6) get the CPU time & mem usage of a process, given the process name(or PID), under WIN2K? Th...x

    A D 2 Replies Last reply
    0
    • S Sandeep Kulkarni

      Could anyone pls tell me how to programmatically (VC++/VB6) get the CPU time & mem usage of a process, given the process name(or PID), under WIN2K? Th...x

      A Offline
      A Offline
      Arcrest
      wrote on last edited by
      #2

      for mem usage,refer to GetProcessMemoryInfo for cpu time, refer to GetProcessTimes and you can also get all information of processes by using Performance Montoring Functions: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/performance\_data.asp but i don't like to use them,because this library uses much system resources, even a simplest program using this library will have at least 7 threads and 5K memory usage.

      1 Reply Last reply
      0
      • S Sandeep Kulkarni

        Could anyone pls tell me how to programmatically (VC++/VB6) get the CPU time & mem usage of a process, given the process name(or PID), under WIN2K? Th...x

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

        This article might be of some help. The Heap32First()/Heap32Next() functions can be used to walk the heap of a process, examining each of the blocks and summing their size if necessary. I've not actually tried this, however. See GetProcessMemoryInfo(). Also look at this article. It does not report numbers like Task Manager does, however.


        A rich person is not the one who has the most, but the one that needs the least.

        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