[PB4.20b1] Profiler should also show the used time per line

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

[PB4.20b1] Profiler should also show the used time per line

Post by IceSoft »

Profiler should also show the used time per line, maybe optional.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

As i explained in the announcement, the fact that the program runs with debugger makes
timing information useless.
quidquid Latine dictum sit altum videtur
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

freak wrote:As i explained in the announcement, the fact that the program runs with debugger makes
timing information useless.
You have right if I use breakpoints.
But If I run in debug mode without any stops...so I get a time which can help me to improve the code.
Of course a log file is also very helpfull to get infos about the terminated prog.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

The debugger has to perform runtime checks and process commands from the IDE/external debugger.
This usually takes much longer than the execution of the actual line.

So the values you would get say nothing about how long the actual line needed to execute.
No matter if you use breakpoints or not.
quidquid Latine dictum sit altum videtur
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

But a log file could be usefull. What think you about a log file?
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

You can use my Analyzer. Unfortunately my webspace disappeared and the
old package (with docs etc.) is somewhere on another PC but this version
should work:
http://remi.secretly.de/downloads/analyzer.exe

It will modify your file (IIRC), so use "%COMPILEFILE" when using it as IDE
plugin. Furthermore it doesn't recognize IncludeFiles -> you have to merge
the files (with appropriate tools).
Athlon64 3700+, 1024MB Ram, Radeon X1600
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

freak wrote:So the values you would get say nothing about how long the actual line needed to execute.
Not even a little pinpoint?
I like logic, hence I dislike humans but love computers.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Maybe we can add a spechial time-profiling mode later on (maybe without the debugger).
For now, the line-profiling is already very useful, just give it a try.
quidquid Latine dictum sit altum videtur
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

freak wrote:Maybe we can add a spechial time-profiling mode later on (maybe without the debugger).
For now, the line-profiling is already very useful, just give it a try.
Yes it is usefull.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
maw

Post by maw »

From this Fred and Freak now has drawn the following conclusion: Never ever introduce new features, they'll just demand more :lol:
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

maw wrote:From this Fred and Freak now has drawn the following conclusion: Never ever introduce new features, they'll just demand more :lol:
Not right.
New features will be only compared with existing features on other products.

BTW:
Higher, faster, better...that are human goals.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

freak wrote:Maybe we can add a spechial time-profiling mode later on (maybe without the debugger).
That's what I wanted to say, too: Since the debugger disturbs time-profiling, implement the time-profiling with the debugger switched off.
freak wrote:For now, the line-profiling is already very useful, just give it a try.
I have tried that some time ago with another programming language. It's best when users have the choice between linecount-profiling and time-profiling. I personally mostly need time-profiling.

Regards, Little John
Kazmirzak
User
User
Posts: 92
Joined: Fri Jun 18, 2004 5:44 pm
Location: Germany

Post by Kazmirzak »

I agree.

So it should also be available when the debugger is off! Simply add "Start with time checking" to the "Run" menu.
The debugger has to perform runtime checks
- True but irrelevant: Who sais I want the debugger while time testing?
Post Reply