[Gambas-user] Question about Gambas3

Emil Lenngren emil.lenngren at ...626...
Thu May 17 19:57:16 CEST 2012


What exactly were the problems, how far did you come?

Maybe add an instruction in the compiled code that is inserted in the
beginning of each function, when a (new) profiling compilation flag is
active.
When that instruction is executed, a counter that counts how many time that
function is incremented. Also one instruction can be inserted just before
Return. Then the running time can be measured. (Exceptions must also be
considerated...)
Gprof uses a similar method.

Or skip new instructions and implement it directly in the interpreter "if
(profiling_active) ...", but that extra if-statement might slow down the
execution when profiling is not active...

There are surely more ways to implement it ;)

/Emil

2012/5/17 Olivier Cruilles <linuxos at ...1896...>

> Ok, so it will be great if you decide to implement this one in Gambas.
>
> Thank's
>
> Olivier Cruilles
> Mail: linuxos at ...1896...
>
> Le 17 mai 2012 à 19:29, Benoît Minisini a écrit :
>
> > Le 17/05/2012 13:47, Olivier Cruilles a écrit :
> >> Hi Benoit,
> >>
> >> Do you think it's possible to have a function in the IDE of Gambas3 to
> profiling a project
> >> when it run like in JAVA:  jprofiler
> >>
> >> Not really the same with all functions but just to profiling functions
> execution to know how many time
> >> they took and which is the most used in way to optimize it ?
> >>
> >> Do you think my question is bad ?
> >>
> >>
> >>
> >> Olivier Cruilles
> >> Mail: linuxos at ...1896...
> >>
> >
> > Your question is not bad!
> >
> > I started something like that a few months ago, but I dropped because I
> > haven't find a good implementation yet. I don't speak about the GUI that
> > presents the result, but about the internals.
> >
> > --
> > Benoît Minisini
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list