Article View: borland.public.cppbuilder.nativeapi
Article #4407Re: CPU load - How can I measure it?
From: Bob Gonder
Date: Mon, 06 Feb 2006 01:56
Date: Mon, 06 Feb 2006 01:56
20 lines
1925 bytes
1925 bytes
Alberto wrote: >More specifically, I do a digital filtering of audio signals using a FIR >filter with a variable >number of taps. What I would like to do is to change dynamically the >number of taps >in function of the current CPU load, accepting the worsening of the >filter performance >in exchange for a reduced consumption of CPU time, if need be. What you are asking doesn't really make sense. If there is nothing else running, then you will get 100% of the CPU. OTOH if your programm is running twice, you will get 50%. Sounds like a better approach would be to see how much work you are getting done during a time tick, and adjust your taps so that you continue to get the job done in time. As in "I need to compute 100 samples per ms". Then if you get only 98 completed, drop a tap. and if you complete 110, add a tap.
Technical Details
Message-ID:
<bqadu11e4stdsh8bhpqblqalm6t7queu8t@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43e53514@newsgroups.borland.com> <40bcu1hlup9hqfr2qfnl6ob26jaudlqvmt@4ax.com> <43e68b34$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e1eea742f875d72d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: CPU load - How can I measure it? Date: Sun, 05 Feb 2006 17:56:52 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <bqadu11e4stdsh8bhpqblqalm6t7queu8t@4ax.com> References: <43e53514@newsgroups.borland.com> <40bcu1hlup9hqfr2qfnl6ob26jaudlqvmt@4ax.com> <43e68b34$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.0.33.195 X-Trace: newsgroups.borland.com 1139190799 71.0.33.195 (5 Feb 2006 17:53:19 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail