Re: [Freedos-user] A tool for CPU-load measurement

2012-04-01 Thread Eric Auer
Hi, >> some interrupt counting TSR to see what is called how often, maybe >> Rugxulo knows one. > > There are various tools (Trace, UI21DEB, KGB, Argus) that work in > limited situations, or presumably you could also just run through an > emulator with built-in debugger (BOCHS? DOSBox?). I don't

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-31 Thread Rugxulo
Hi, On Thu, Mar 29, 2012 at 3:03 PM, Eric Auer wrote: > > In DOS, you would probably only notice due to high CPU heat output. > Because when you press the key, even the weak program still reacts > immediately and most users are still happy. > > You could use some advanced cache statistics to see

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-29 Thread Eric Auer
Hi Z! I like the idea from TJ Edmister with the background change as easy to implement and easy to eyeball visual feedback of load, but let me tell you an anecdote: Once I upgraded from a 386 to a 6x86 CPU, but had no new VGA card yet. I played with an old Mandelbrot set program and was surprised

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread TJ Edmister
On Wed, 28 Mar 2012 18:33:42 -0400, Zbigniew wrote: > > This time I would compare, how much CPU time will my "toy program" > need on different machines. I would to make it show, how many percent > of CPU time was needed, if this can be possible. > > Why? Because I'm not going to make it "as fas

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Bernd Blaauw
Op 29-3-2012 1:38, Michael Robinson schreef: > WARNING, you can't write a program that takes another arbitrary > program as input and tells you whether or not it halts. This is > called the halting problem. As far as loop troubleshooting, you may > want to use another OS and a debugger to write

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Michael Robinson
On Wed, 2012-03-28 at 23:27 +, Zbigniew wrote: > You know: graphics is one thing - this is just actual "fun project" - > but being able to detect instantly the weak place in program, which is > causing unnecessarily high CPU load (say: looping for a key without > any "pause 10 ms"), is the othe

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Zbigniew
You know: graphics is one thing - this is just actual "fun project" - but being able to detect instantly the weak place in program, which is causing unnecessarily high CPU load (say: looping for a key without any "pause 10 ms"), is the other useful thing. Then actually I'm looking for something of

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Eric Auer
Hi Z, > This time I would compare, how much CPU time will my "toy program" > need on different machines. I would to make it show, how many percent > of CPU time was needed, if this can be possible. For total runtime, you could do RUNTIME YOURPROGRAM at the prompt... > > Why? Because I'm not goi

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Zbigniew
2012/3/28, Eric Auer : > You do not have to explicitly program anything for this: > Just run FDAPM APMDOS at some time, e.g. in your autoexec > and then run FDAPM STATS to see how much of the time the > CPU was idle - to be exact, which percentage of the time > slices contained any idle time, so "

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Zbigniew
2012/3/28, dmccunney : > While it *can* be done, I'm not sure why you want to. > > On a multi-tasking OS like Windows or Linux, I'll use Process Explorer > (Win) or top (Linux), to get an idea of which programs are hitting the > CPU. This time I would compare, how much CPU time will my "toy progr

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Eric Auer
Hi Zbigniew, >> Actually you can use FDAPM for that: While the APMDOS >> function is active, FDAPM keeps MSDOS POWER compatible >> statistics of which percentage of the timer tick... You do not have to explicitly program anything for this: Just run FDAPM APMDOS at some time, e.g. in your autoexe

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread dmccunney
On Wed, Mar 28, 2012 at 5:21 PM, Zbigniew wrote: > There are various tools for Windows/Linux, which can display actual > CPU workload. Since DOS doesn't do multitasking, my guess is, that > here "external" utility won't be of any use. But DOS-program could > have it built-in. Could someone tell me

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Zbigniew
2012/3/28, Eric Auer : > Actually you can use FDAPM for that: While the APMDOS > function is active, FDAPM keeps MSDOS POWER compatible > statistics of which percentage of the timer tick "time > slices" contains signs of DOS and the apps being idle. > In such situations, the cpu is halted with HLT

Re: [Freedos-user] A tool for CPU-load measurement

2012-03-28 Thread Eric Auer
Hi Zbigniew, > There are various tools for Windows/Linux, which can display actual > CPU workload. Since DOS doesn't do multitasking, my guess is, that > here "external" utility won't be of any use. But DOS-program... Actually you can use FDAPM for that: While the APMDOS function is active, FDAP