Re: Purefiler - An alternative profiler
Posted: Thu Sep 23, 2010 4:41 pm
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?
Can you find this?
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
MessageRequester("Tool Tester",PeekS(GetCommandLine_()))
Hm, that's kinda strange - can you post the code with which you tested?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
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: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_()))
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 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
Hm, that's an issue. I will work that out.Michael Vogel wrote:PS when using EnableExplicit I get an error that Purefilervar has to be defined?!
It's only few lines to show the pbDidelphodon wrote: Hm, that's kinda strange - can you post the code with which you tested?
Problem solved - a new version is online.Didelphodon wrote: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: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_()))
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 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
Michael
Hm, that's an issue. I will work that out.Michael Vogel wrote:PS when using EnableExplicit I get an error that Purefilervar has to be defined?!
Thx for the feedback!
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.Starwolf20 wrote:It's only few lines to show the pbDidelphodon wrote: Hm, that's kinda strange - can you post the code with which you tested?
a=0
For i=1 To 100
a=a+1
Next i
That's gettn stranger and stranger - plz try the second speedtest. Thx.Starwolf20 wrote:-1030 - -742 = -288
Here you are
Good to hearStarwolf20 wrote:It's ok now
Thanks