Update of the memory profiling with Valgrind

classic Classic list List threaded Threaded
1 message Options
Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Update of the memory profiling with Valgrind

Re,

I updated the option -profiling when Scilab is called under Linux with
this option.
Many warnings coming from thirdparty libraries are now suppressed
automatically.
The list of suppression is in tools/profiling/valgrind.supp

By default, valgrind is providing the suppression syntax on each error.
It is something like that:
{
   <insert a suppression name here>
   Memcheck:Addr2
   fun:getenv
   fun:g_get_filename_charsets
   obj:/usr/lib/libglib-2.0.so.0.1400.6
   fun:g_filename_to_utf8
   fun:g_dir_open
   obj:/usr/lib/libgtk-x11-2.0.so.0.1200.7
}

And can be added to tools/profiling/valgrind.supp
I haven't done every warnings, feel free to update this file.

Sylvestre
PS: I updated the wiki:
http://wiki.scilab.org/Debugging_and_Profiling_Scilab_5?action=diff&rev2=17&rev1=16