|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
profiling in prologHi.
I´m working in a project for my graduation that a have to do some profiling in prolog code and write this data in a new .pl archieve. My problem is that a don´t know which place and struct that has the prolog code that is read from the archive in the moment that i load it. The profiling information is in a new struct that i created in pred_entry struct. Which struct or global variable that have then start list of pred_entry vars? Wich struct or variable have the .pl source read in the load? thanks for all. -- TIAGO HENRIQUE BORDONI ------------------------------------------------ 5° Ano - INFORMÁTICA - UEM Maringá - Paraná - Brasil Cel.: (44) 9982 8191 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Yap-users mailing list Yap-users@... https://lists.sourceforge.net/lists/listinfo/yap-users |
|
|
Re: profiling in prologHi Tiago
Sorry for the delay. I couldn't understand your question very well :( On Wed, Oct 7, 2009 at 3:57 PM, Tiago Bordoni <tiagobordoni@...> wrote: > Hi. > > I´m working in a project for my graduation that a have to do some profiling > in prolog code and write this data in a new .pl archieve. > My problem is that a don´t know which place and struct that has the prolog > code that is read from the archive in the moment that i load it. YAP has this hook ap_inform_profiler_of_clause and ap_inform_of_removal that are called whenever you add or remove code. They are implemented in gprof.c and you should look at them first, I think. > The profiling information is in a new struct that i created in pred_entry > struct. > Which struct or global variable that have then start list of pred_entry > vars? > Wich struct or variable have the .pl source read in the load? YAP does not keep the source of facts. Instead, it uses unification to recover the fact. Sources for rules are kept in a ClSource field of each clause structure. The code for clause in cdmgr.c is a bit complex, but that's how YAP recovers source. Sorry again for the delay :( Vitor > > thanks for all. > -- > TIAGO HENRIQUE BORDONI > ------------------------------------------------ > 5° Ano - INFORMÁTICA - UEM > Maringá - Paraná - Brasil > Cel.: (44) 9982 8191 > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Yap-users mailing list > Yap-users@... > https://lists.sourceforge.net/lists/listinfo/yap-users > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Yap-users mailing list Yap-users@... https://lists.sourceforge.net/lists/listinfo/yap-users |
| Free embeddable forum powered by Nabble | Forum Help |