Results 1 to 2 of 2

Thread: PerformanceCounter

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Location
    Belgium
    Posts
    98

    PerformanceCounter

    Hi all,

    is it possible to monitor my RAM-memory use of my application using a PerformanceCounter? If so, can somebody help me with the code? I've been looking around on the web, but my knowledge about memory isn't enough to understand what precisely I have to use

    Thanks in advance

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: PerformanceCounter

    Are you basically just looking for what shows up in task manager when you look at the memory usage for your process? I think My.Application.Info.WorkingSet will get you that (in bytes) as the description of that property is:
    Gets the amount of physical memory mapped to the process context.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width