Export (0) Print
Expand All

Adding a Performance Counter (Windows CE 5.0)

Windows CE 5.0
Send Feedback

You can add a performance counter to your application to tune performance while you develop and debug the application.

After you complete the development of your application, the counter can assist a system administrator in adjusting settings for your application.

To add a performance counter

  1. Design the object types and counters for your application.

    For more information about designing object types and counters, see Object and Counter Design.

  2. Create an initialization (.ini) file that contains the names and descriptions of the counter objects and counters.

    For more information, see Counter Name and Description Additions to the Registry.

  3. Create a header (.h) file containing the relative offsets where the counter objects and counters will be installed in the registry.

    For more information, see Counter Name and Description Additions to the Registry.

  4. Under the Services subkey for the application in the registry, create a registry subkey.

    If the registry does not have a Services subkey for the application, create a Services subkey under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet key. For more information, see Application Performance Key Creation.

  5. Use the lodctr utility and the .ini and .h files to install information in the registry.

    The lodctr utility succeeds only if a performance key exists under the Services subkey for the application. For more information, see Counter Name and Description Additions to the Registry.

  6. Create a performance DLL containing a set of exported functions that provide the link between the application and a performance monitoring application.

    For more information, see Performance Extension DLL Creation.

  7. Modify the setup file for your application to add information to the registry and to move your performance DLL to the system directory.
  8. Use the extensible counter list utility (Exctrlst.exe) to view an extended object, its functions, and its counter.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft