Page 2 of 7
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 4:41 pm
by Didelphodon
In your user-folder (home-directory) you should find a folder named "Purefiler". Any profile-run leaves 2 files in there.
Can you find this?
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 4:50 pm
by Didelphodon
A new version is online. When Purefiler is executed in pre-processor-mode (when you build an executable with the tool enabled) there's a messagerequester opened initially where you can choose if you want to compile with Purefiler code or without. So, when you don't see this messagerequester then something happened on the way.

Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 5:44 pm
by Starwolf20
Hi Didelphodon
I have a bug : Some timings appears to be negative
For example :
File line Hits Time (ms)
1 1 1 -0.000337 a=0
1 2 For i = 1 to 100
1 3 100 -0.032313 a=a+1
1 4 next i
Nb : PB 4.51 on a I5 760 & XP
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 7:20 pm
by Michael Vogel
If you compile the following and call it Purefiler.exe you can see if %COMPILEFILE is working...
Code: Select all
MessageRequester("Tool Tester",PeekS(GetCommandLine_()))
Maybe it would be easier to be able to do some simple configuraions (enable/disable the Purefiler and set the working directory) in a dialog which can be available when starting the program without any parameter. The settings can be saved even in the purebasic.prefs)
So you would not have to set the mode each time you create an exe file
Michael
PS when using EnableExplicit I get an error that Purefilervar has to be defined?!
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 7:53 pm
by Didelphodon
Starwolf20 wrote:Hi Didelphodon
I have a bug : Some timings appears to be negative
For example :
File line Hits Time (ms)
1 1 1 -0.000337 a=0
1 2 For i = 1 to 100
1 3 100 -0.032313 a=a+1
1 4 next i
Nb : PB 4.51 on a I5 760 & XP
Hm, that's kinda strange - can you post the code with which you tested?
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 8:00 pm
by Didelphodon
Michael Vogel wrote:If you compile the following and call it Purefiler.exe you can see if %COMPILEFILE is working...
Code: Select all
MessageRequester("Tool Tester",PeekS(GetCommandLine_()))
Thx for the tip! In the meantime I already added some messagebox at the beginning of pre-processing (build) with which you can decide if to build with or without Purefiler.
Michael Vogel wrote:
Maybe it would be easier to be able to do some simple configuraions (enable/disable the Purefiler and set the working directory) in a dialog which can be available when starting the program without any parameter. The settings can be saved even in the purebasic.prefs)
So you would not have to set the mode each time you create an exe file

See above quote - but indeed, it might be smart to make the working directory (or storing directory) adjustable. I'll keep that in mind.
Michael
Michael Vogel wrote:PS when using EnableExplicit I get an error that Purefilervar has to be defined?!
Hm, that's an issue. I will work that out.
Thx for the feedback!
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 8:39 pm
by Starwolf20
Didelphodon wrote:
Hm, that's kinda strange - can you post the code with which you tested?
It's only few lines to show the pb
a=0
For i=1 To 100
a=a+1
Next i
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 8:49 pm
by Didelphodon
Didelphodon wrote:Michael Vogel wrote:If you compile the following and call it Purefiler.exe you can see if %COMPILEFILE is working...
Code: Select all
MessageRequester("Tool Tester",PeekS(GetCommandLine_()))
Thx for the tip! In the meantime I already added some messagebox at the beginning of pre-processing (build) with which you can decide if to build with or without Purefiler.
Michael Vogel wrote:
Maybe it would be easier to be able to do some simple configuraions (enable/disable the Purefiler and set the working directory) in a dialog which can be available when starting the program without any parameter. The settings can be saved even in the purebasic.prefs)
So you would not have to set the mode each time you create an exe file

See above quote - but indeed, it might be smart to make the working directory (or storing directory) adjustable. I'll keep that in mind.
Michael
Michael Vogel wrote:PS when using EnableExplicit I get an error that Purefilervar has to be defined?!
Hm, that's an issue. I will work that out.
Thx for the feedback!
Problem solved - a new version is online.
Please verify if the problem is also solved for you.
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 9:24 pm
by Didelphodon
Starwolf20 wrote:Didelphodon wrote:
Hm, that's kinda strange - can you post the code with which you tested?
It's only few lines to show the pb
a=0
For i=1 To 100
a=a+1
Next i
Hm, I tried various situations but never was able to get negative results. No idea. Can you execute the following
speedtester on your machine and post the result afterwards (the result is also coppied to the clipboard)? Thx.
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 9:38 pm
by Starwolf20
-1030 - -742 = -288
Here you are
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 9:57 pm
by Didelphodon
Starwolf20 wrote:-1030 - -742 = -288
Here you are
That's gettn stranger and stranger - plz try the second
speedtest. Thx.
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 9:59 pm
by Starwolf20
-1040 - -729 = -311
-0.672840 / -230 / 231210551 / 0
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 10:12 pm
by Didelphodon
I put an Abs() in it as everything looks just inverted on your PC, besides that all the deltas look realistic. So I guess that the sign just flipped because of the actual (high) values on your machine. A new version of Purefiler is online - can you try that?
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 10:35 pm
by Starwolf20
It's ok now
Thanks
Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 10:38 pm
by Didelphodon
Starwolf20 wrote:It's ok now
Thanks
Good to hear
