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#
  4. instrumenting an application in .NET

instrumenting an application in .NET

Scheduled Pinned Locked Moved C#
tutorialcsharphelpquestion
3 Posts 2 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.
  • G Offline
    G Offline
    G_Zola
    wrote on last edited by
    #1

    I believe the system.management.instrumentation namespace provides classes to instrument an application. For example, if an application is stopped, an event will occur to get it started.... The problem is how to i determine the idle or unstable state of an application? Welcome any advice

    M 1 Reply Last reply
    0
    • G G_Zola

      I believe the system.management.instrumentation namespace provides classes to instrument an application. For example, if an application is stopped, an event will occur to get it started.... The problem is how to i determine the idle or unstable state of an application? Welcome any advice

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      G_Zola wrote: The problem is how to i determine the idle or unstable state of an application? Hmm. Do have a separate watchdog application or service? I guess you want to monitor several things--has the application completely crashed (disappeared from the process list), has it gone into some infinite loop where it's no longer handling UI events (maybe your app can respond to a ping from the watchdog app and fails to respond), is it responsive but consuming a huge amount of CPU time, etc. Just some ideas. Marc MyXaml Advanced Unit Testing YAPO

      G 1 Reply Last reply
      0
      • M Marc Clifton

        G_Zola wrote: The problem is how to i determine the idle or unstable state of an application? Hmm. Do have a separate watchdog application or service? I guess you want to monitor several things--has the application completely crashed (disappeared from the process list), has it gone into some infinite loop where it's no longer handling UI events (maybe your app can respond to a ping from the watchdog app and fails to respond), is it responsive but consuming a huge amount of CPU time, etc. Just some ideas. Marc MyXaml Advanced Unit Testing YAPO

        G Offline
        G Offline
        G_Zola
        wrote on last edited by
        #3

        I wonder if there is a built in attribute in system.management which can access the status of the application. So far i have looked into the win32_Process namespace in root/cimv2 in WMI which may have only started or stopped values for the status attribute. Or i will need an explicit timer to poll the application?

        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