On Feb 3, 2011, at 6:45 PM, Darius Blaszyk wrote:

> For the fpprofiler package I would like to know/do the following;
> 
> 1. get all the -Fu and -Fi folders so the package can search them and allow 
> the user to include/exclude them from profiling, which method to use in 
> LazIDEIntf?
> 2. replace the FPC executable with the profiling frontend executable. 
> currently I do:
> 
> //insert profiling code using TProcess
> //build project using : LazarusIDE.DoBuildProject(crCompile, []);    
> //remove profiling code using TProcess
> //execute project if LazarusIDE.ActiveProject.ExecutableType = petProgram
> 
> however, I'm not sure if it could be done better

Ideally I would replace the FPC executable by FPP and then execute 
LazarusIDE.DoRunProject (??)  . This way I would not have to play with TProcess 
to insert and remove profiling code and execute the application.

Darius


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to