Re: [Gambas-user] Profiler for Gambas projects

2009-09-13 Thread Jussi Lahtinen
>>  I have many projects, with physics and math, different simulations, >> experimental game, etc. >>  Non of them do networking or uses database at this moment. >>  So, I don't know how much profiler can help you with them, but I >> guess in most cases very little. >> > At this point I can no more

Re: [Gambas-user] Profiler for Gambas projects

2009-09-13 Thread Doriano Blengino
Jussi Lahtinen ha scritto: > I have many projects, with physics and math, different simulations, > experimental game, etc. > Non of them do networking or uses database at this moment. > So, I don't know how much profiler can help you with them, but I > guess in most cases very little. > At th

Re: [Gambas-user] Profiler for Gambas projects

2009-09-13 Thread Jussi Lahtinen
> If a program does networking, database, or uses complex libraries, then > the bottleneck is almost always outside the program itself. So it makes > little difference in using python, gambas or assembler. I like Gambas because it is very fast to write, and in most cases it's also fast enough to

Re: [Gambas-user] Profiler for Gambas projects

2009-09-12 Thread Doriano Blengino
Jussi Lahtinen ha scritto: > I must add this also... > Profiler is like debugger, if you know where the error is you don't > need debugger, > but many times you don't! > Same thing with profiler, if you know where the bottleneck is you > don't need profiler, > but many times you don't! > I don't

Re: [Gambas-user] Profiler for Gambas projects

2009-09-12 Thread Jussi Lahtinen
I must add this also... Profiler is like debugger, if you know where the error is you don't need debugger, but many times you don't! Same thing with profiler, if you know where the bottleneck is you don't need profiler, but many times you don't! Jussi On Sat, Sep 12, 2009 at 15:39, Jussi Lahtin

Re: [Gambas-user] Profiler for Gambas projects

2009-09-12 Thread Jussi Lahtinen
> Computers are much faster, Still your program can run slowly! > compilers are more optimizing, Gambas compiler do not optimize at all. > analisys of the task and experience tell what to do - better than a profiler. Not true at all. That's almost always opposite! > This was clearly sta

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Doriano Blengino
Jussi Lahtinen ha scritto: > It would still have performance impact, > because interpreter would have to constantly check if profiler section > of code is needed to execute. > Compiler isn't used at runtime, so changes should be made to interpreter. > I remember the old good days when turbo pasc

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Jussi Lahtinen
: mailing list for gambas users > Sent: Friday, September 11, 2009 10:55:41 AM > Subject: Re: [Gambas-user] Profiler for Gambas projects > >> I haven't use Valgrind, but I think yes, but I'm only interested about >> performace analysis. >> >> Jussi >> > &

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread David Villalobos Cambronero
:55:41 AM Subject: Re: [Gambas-user] Profiler for Gambas projects > I haven't use Valgrind, but I think yes, but I'm only interested about > performace analysis. > > Jussi > OK, I read the wikipedia entry and found how gprof works, and now I can see how it could be don

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Jussi Lahtinen
> 5) Run a high resolution timer that increments that counter for the current > function at the time the timer is triggered. How accurate high resolution timer is on Linux? > But I hate slowing down the interpreter for such things. I agree, that is not good option! > Maybe by compiling a sp

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Ron
Benoît Minisini schreef: >> I haven't use Valgrind, but I think yes, but I'm only interested about >> performace analysis. >> >> Jussi >> >> > > OK, I read the wikipedia entry and found how gprof works, and now I can see > how it could be done: > > 1) Have a counter for each Gambas function w

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Benoît Minisini
> I haven't use Valgrind, but I think yes, but I'm only interested about > performace analysis. > > Jussi > OK, I read the wikipedia entry and found how gprof works, and now I can see how it could be done: 1) Have a counter for each Gambas function written in Gambas and for each public functi

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Jean-Yves F. Barbier
Jussi Lahtinen a écrit : > I haven't use Valgrind, but I think yes, but I'm only interested about > performace analysis. I think that's a nice idea, when I 1st used a python profiler, I found many places where small modifications greatly improved execution time. JY -- I know things about TROY DO

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Jussi Lahtinen
I haven't use Valgrind, but I think yes, but I'm only interested about performace analysis. Jussi 2009/9/11 Benoît Minisini : >> Hi all! >> I hope I'm not talking pure non-sense about this, but lets try... >> I was thinking about possibility to make profiler for Gambas projects. >> I readed wiki

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Benoît Minisini
> Hi all! > I hope I'm not talking pure non-sense about this, but lets try... > I was thinking about possibility to make profiler for Gambas projects. > I readed wikipedia article about profilers ( > http://en.wikipedia.org/wiki/Profiler_(computer_science)#Statistical_profil > ers ), > and I think

[Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Jussi Lahtinen
Hi all! I hope I'm not talking pure non-sense about this, but lets try... I was thinking about possibility to make profiler for Gambas projects. I readed wikipedia article about profilers ( http://en.wikipedia.org/wiki/Profiler_(computer_science)#Statistical_profilers ), and I think statistical pro