performancecounter

Performance Counters in Windbg Crash Dump

Is it possible to see thread performance counters in dump of native c++ application in windbg. ...

Multi-threading calls in Windows Forms application?

I'm trying to make my C# application multi threaded because sometimes, I get an exception that says I have made a call to a thread in an unsafe manner. I've never done any multi-threading before in a program, so bear with me if I sound kinda ignorant on the issue. The overview of my program is that I want to make a performance monitori...

Sending a Refresh() to WMI in PowerShell

In a PowerShell script I am trying to get the number of page faults per second with this command: (Get-WmiObject Win32_PerfFormattedData_PerfOS_memory).PageFaultsPersec Unfortunately, it reads always the same value because I don't Refresh() the performance counter. How can I send a Refresh() method to Pervormance Data via PowerShell?...

How do performance counter average timers get associated with their base?

I am adding some performance counters to my c# project and am creating a new PerformanceCounterCategory. In this category, I would like to have multiple counters/timers that track different things. I have a need to use multiple average timers and am trying to understand how the AverageBase counter gets associated with the correct Average...

C# - Getting a RawFraction Performance Counter to show a persistent value

I've created a performance counter that shows a fraction of an incremented value (RawFraction type) over a base value (RawBase). Unfortunately, when monitoring this value, it only shows the percentage when one of the counters is incremented. At all other times it it is sampled, it shows 0. Is there some way to tell the counter to hold ...

Inaccurate performance counter timer values in Windows Performance Monitor

I am implementing instrumentation within an application and have encountered an issue where the value that is displayed in Windows Performance Monitor from a PerformanceCounter is incongruent with the value that is recorded. I am using a Stopwatch to record the duration of a method execution, then first i record the total milliseconds a...

How can I take the performance information from OpenOffice in C#?

I'm trying to monitor the performance information for openoffice using the performance counter class in C#. I'm encountering a wierd issue where although my program can monitor other applications information just fine, it cannot monitor open office's performance data properly using the same procedure. Essentially, I create a process and ...

Impersonation - Access is denied

I am having trouble using impersonation to delete a PerformanceCounterCategory from an MVC website. I have a static class and when the application starts it checks whether or not a PerformanceCounterCategory exists, and if it contains the correct counters. If not, it deletes the category and creates it again with the required counters. ...

performance counter

Hi All I created a performance counter for my C# application. Its type is NumberOfItems32. I don't know why but the Performance Monitor is displaying me on the y-axis only as maximum value only 100 when my counter is much more bigger than this for sure. Do you know if this is the correct behavior or am I doing something wrong? Thanks a...

CPU consumption of my process

Hi all I would like to use Performance Monitor to check the CPU consumption of my process. Right now I am working on a MultiCore machine. If I have a look at my process in TASK MANAGER I see that my process consumes 20% of CPU. If I start performance monitor, I select Process->->% Processor Time I see values peaking up and over 100%. D...

[.NET Performance Counter] "System.ComponentModel.Win32Exception: Access is denied" is thrown when calling PerformanceCounterCategory.Create()

Hi guys: Calling PerformanceCounterCategory.Create() below on my machine thorws out this exception: System.ComponentModel.Win32Exception: Access is denied And the message reported in Event Viewer goes as following: The SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib key could not be opened or accessed in order to install counte...

Performance Counters in Server Development

Dear Gurus, All of you agree with the value of using Performance Counters for server applications. I would like to know how to implement these using C#. Usually performance counters have the following attributes: They are shared/global Writing requires locks to ensure synchronization Reading sometimes requires locks too Is it bett...

How can I get page faults statistics from kernel

Hello How can I get page faults statistics from kernel for my application while it is running? What about other events, like inter-cpu migrations count in SMP nodes, or number of context switches? I want to count such events for various small parts of the program. Thanks. ...

Monitor disk activity programmatically (Windows)

In Windows 2008R2, in Resource Monitor in the Disk Activity section I can see the number of bytes read from/written into files. How can I do this in a programmatic manner, preferably using C# (or Win32 API)? I have looked into WMI and various performance counters, however I cannot figure out if there is something which suits my needs. ...

sharepoit performance counter instance name with [ACL]

Select a Sharepoint performance counter object, there are two instances for each of my web site. For example, for the ssp site, the two instance are named as portnumber_ssp_admin portnumber_ssp_admin[ACL] What is the difference between the two instances? What is the meaning of [ACL]? ...

How can I use Performance Counters in C# to monitor 4 processes with the same name?

I'm trying to create a performance counter that can monitor the performance time of applications, one of which is Google Chrome. However, I notice that the performance time I get for chrome is unnaturally low - I look under the task-manager to realize my problem that chrome has more than one process running under the exact same name, but...

How can I access the C# performance counter in the code?

I want to use the performance counter output in my program. How can I access the performance counter in code without using the perfmon.exe. I want to create my own performance counter app. ...

Is there a DecrementBy() method in the Performance Counter subject??

In books I have seen that it exists but MSDN says it does not??? What do you guys have to say on this subject??? Might load up VS later on and see if it appears in 3.5 .Net. I;m asking as some of you lot know I am lsowly revising for the exam and I don't want little nougets like this to suprise me. TIA ...

What is the performance hit for using WCF Performance Counters (performanceCounters = "ALL")?

Does anyone have experience with using the WCF Performance Counters in a production system and running into any performance issues? I suspect if you are monitoring all Service, Endpoints, and Operations and log all counters to a file, sampling every second, then this is the worst case scenario. From what I gather, the hit comes when yo...

Performance Overhead of Perf Event Subsystem in Linux Kernel

Performance counters for Linux are a new kernel-based subsystem that provide a framework for all things performance analysis. It covers hardware level (CPU/PMU, Performance Monitoring Unit) features and software features (software counters, tracepoints) as well. Since 2.6.33, the kernel provide 'perf_event_create_kernel_counter' kernel ...