Try Win32::PerfLib.
In reply to Re: Thread Counts (PerfLib) by tye in thread Thread Counts by kidwahoo94