performance-counter

ASP.NET/C# - Custom PerformanceCounters only show up in 32-bit perfmon on 64-bit system

I'm trying to create a set of custom performance counters to be used by my ASP.NET application. I use the following code to increment the counters: internal static void Increment(String instanceName, DistributedCacheCounterInstanceType counterInstanceType) { var permission = new PerformanceCounterPermission(PerformanceCounterPermiss...

Publishing performance counters within Windows-based async-messaging application?

So I'm involved in building an application that's using an async messaging architecture. One of the requirements is monitoring performance from a central location; requests/sec at each node, requests/sec processed by series of nodes, etc. This is being built with .NET within a Windows-based platform, distributed across several machines...

[C#] Why the cpu performance counter kept reporting 0% cpu usage?

Here is my code snippet: PerformanceCounter cpuload = new PerformanceCounter(); cpuload.CategoryName = "Processor"; cpuload.CounterName = "% Processor Time"; cpuload.InstanceName = "_Total"; Console.WriteLine(cpuload.NextValue() + "%"); But the output is always 0%, while the cpuload.RawValue is ...

How to benchmark on multi-core processors

I am looking for ways to perform micro-benchmarks on multi-core processors. Context: At about the same time desktop processors introduced out-of-order execution that made performance hard to predict, they, perhaps not coincidentally, also introduced special instructions to get very precise timings. Example of these instructions are rdt...

Monitoring disk performance with MRTG

I use MRTG to monitor vital stats on my servers like disk space, CPU load, memory usage, temperatures etc. It all works fine and well for parameters that don't change rapidly. By running small VB script I can also get any Performance Counter. However these scripts are called by MRTG every 5 minutes while performance counters like physi...

How to measure program execution time in ARM Cortex-A8 processor?

Hi Guys, I'm using an ARM Cortex-A8 based processor called as i.MX515. There is linux Ubuntu 9.10 distribution. I'm running a very big application written in C and I'm making use of gettimeofday(); functions to measure the time my application takes. main() { gettimeofday(start); .... .... .... gettimeofday(end); } This method was ...