Click here to Skip to main content
15,896,912 members
Articles / Desktop Programming / Win32

A minimal footprint performance monitor using Windows messaging

Rate me:
Please Sign up or sign in to vote.
2.13/5 (8 votes)
24 Feb 2008CPOL3 min read 24.5K   153   13  
In an unmanaged environment, using Windows performance monitors may prove challenging. This article propose an alternative which is both easy and efficient.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("LightPerfMon")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Siterra")]
[assembly: AssemblyProduct("LightPerfMon")]
[assembly: AssemblyCopyright("Copyright © Siterra 2008")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3b163610-0ed6-4c9e-bde7-910f65401428")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
Technologist & Executive.

Specializes in .NET, COM and the gray material between them. Intimately familiar with most MS technologies.

Developing software for a living for the last 10 years, focusing on web based enterprise software as a service for the last 8.

Comments and Discussions