Results 1 to 2 of 2

Thread: Please help me!!

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Posts
    48

    Please help me!!

    does anyone know how to use performance counters.

    this is wat i have. i have to show the processor usage information.

    Dim perfCounter As New System.Diagnostics.PerformanceCounter

    perfCounter.CategoryName = "Processor"
    perfCounter.CounterName = "% Processor Time"
    perfCounter.InstanceName = "_Total"

    Debug.WriteLine(perfCounter.RawValue.ToString)

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    check this msdn explanation ... CounterSample Constructor
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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