Patch #919 2006-03-13 15:42

mortenmacfly

Allow (replace) EnvVars in profiler
Download
919-Allow_replace_E.patch (652 bytes)
Category
Plugin::Bugfix
Status
Accepted
Close date
2006-03-15 08:34
Assigned to
 
Index: D:/EigeneDateien/Code/CodeBlocks/svn/src/plugins/contrib/profiler/cbprofiler.cpp
===================================================================
--- D:/EigeneDateien/Code/CodeBlocks/svn/src/plugins/contrib/profiler/cbprofiler.cpp    (revision 2188)
+++ D:/EigeneDateien/Code/CodeBlocks/svn/src/plugins/contrib/profiler/cbprofiler.cpp    (working copy)
@@ -117,6 +117,7 @@
     if (target)
     {
         exename = target->GetOutputFilename();
+        Manager::Get()->GetMacrosManager()->ReplaceEnvVars(exename);
         wxFileName ename(exename);
         ename.Normalize(wxPATH_NORM_ALL, project->GetBasePath());
           exename = ename.GetFullPath();
mortenmacfly 2006-03-13 15:44

The profiler does not replace environment variables if they are used in for the output of the executable in a project. Thus profiling such applications is not possible with the profiler plugin (so far). This patch adds the support.