WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Question about Gambas3

Re: Question about Gambas3

by Emil Lenngren :: Rate this Message:

| View in Thread

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@...>

> Ok, so it will be great if you decide to implement this one in Gambas.
>
> Thank's
>
> Olivier Cruilles
> Mail: linuxos@...
>
> 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@...
> >>
> >
> > 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@...
> > 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@...
> 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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

 « Return to Thread: Question about Gambas3