[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linrad] Re: Resources



I am by no means a Windows programmer - but I remember something about perflib API calls. I think MinGW has hooks to perflib, check out winperf.h as well as the MinGW Windows API document ( like CollectPerformanceData() ). There is also a sample program how to read from the perflib registry areas in a section called "Displaying Object, Instance, and Counter Names" using RegOpenKey, RegCloseKey, RegQueryInfoKey, and RegQueryValueEx funtions.

Here is an O'Reilly free chapter out of "Windows 2000 Performance Guide" that talks a little about perflib.dll, as well as some multithreading/multiprocessor stuff: http://www.oreilly.com/catalog/w2kperf/chapter/ch05.html

There is also a way to look at CPU in Perl using Win32::PerfLib. Maybe a peek at the source code for this module would be helpful.

Brian

Joe Taylor wrote:

Bill --

Linrad is a complicated program with very tight real-time constraints. As a consequence, Leif prefers a lean-and-mean approach in which one can
understand, at a detailed level, as much as possibly of what is going on.

If the access to the Registry is required, so be it. If you can produce a simple C routine that wraps the necessary system calls and produces a fractional CPU load, so that another C routine can access it, I am sure that Leif would greatly appreciate it!

With best wishes,

    -- 73, Joe, K1JT

Bill Tracey wrote:

Don't know that there is a single call to do it .. the Pdh/registry stuff can do it from straight C -- takes a few calls though. What's the issue with looking in the Registry?

Cheers,

Bill (kd5tfd)

At 09:08 PM 8/25/2005, Joe Taylor wrote:

Thanks, Bill. I have found references like the URL you kindly provided.

What we are looking for, I'm afraid, is a way to get at the desired information from "plain old C". No C#, no .Net, no Registry, just a plain vanilla system call. As far as I can tell, one does not exist in Windows.
                        -- Joe, K1JT


#############################################################
This message is sent to you because you are subscribed to
 the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx> To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to  <linrad-request@xxxxxxxxxxxxxxxxxxxxx>


#############################################################
This message is sent to you because you are subscribed to
 the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to  <linrad-request@xxxxxxxxxxxxxxxxxxxxx>

LINRADDARNIL
t