Click here to Skip to main content
13,052,870 members (71,708 online)
Click here to Skip to main content
Add your own
alternative version


12 bookmarked
Posted 11 Apr 2002

Logging process performance info

, 11 Apr 2002
Rate this:
Please Sign up or sign in to vote.
This article contains a small tool which use PDH functions to obtain process info/performance data.

Sample Image - processinfo.gif


The very important step in developing application is performance testing. Usually it starts before main release, so this simple technique is primarily useful for QA engineers because it can help you to enhance your auto tests or scripts. But it can be quite useful for getting some extra info about being of your application/process during long period of time. Developers and QA staff can use this tiny tool when its necessary to understand what operations are unpredictably slow or lead to memory leaks or doing something wrong at last.

Well, now some usage info:

// Parameters:
// -proc : process name
// -time : time to sleep in msec between logging info
// -repeat : count of repeat get-info actions
// -text : text to be passed into file 
//         (should be last parameter in command line)
// Examples:
// Following line add into (created/opened) file 
// 5 lines through 1 second with memory info
// and comment line "Entry point #1" before this info
// cpuinf.exe -proc Winamp -time 1000 -repeat 5 -text Entry point #1

Output file will be performance.csv, as you can guess - csv - is Comma-Separated Excel-understandable format - so you just need to click-on-it to open in MS Excel and select few columns to create charts with application performance info. This should really save your time ;)

Possibly you can find a new (not listed above) appropriate task for using this (plz keep me informed)...


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Andrei Iarantsev
Web Developer
Belarus Belarus
QA engineer

You may also be interested in...


Comments and Discussions

QuestionWindows System Monitor ? Pin
Matthias Mann12-Apr-02 7:24
memberMatthias Mann12-Apr-02 7:24 
AnswerRe: Windows System Monitor ? Pin
aidman12-Apr-02 7:51
memberaidman12-Apr-02 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 12 Apr 2002
Article Copyright 2002 by Andrei Iarantsev
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid