[C++/GCC] Ne pas instrumenter les fonctions de la lib standard
Bonjour à tous,
J'ai trouvé sur ce lien :
http://gcc.gnu.org/onlinedocs/gcc-4....n-Options.html
la directive qui permet d'exclure des fichiers de l'instrumentation (-finstrument-functions) pour éviter d'avoir les fonctions de la lib standard (std::vector, std::map, std::string, std::XXX et aussi les fonctions d'allocations à la C++ etc.)
Citation:
-finstrument-functions-exclude-file-list=file,file,...
Set the list of functions that are excluded from instrumentation (see the description of -finstrument-functions). If the file that contains a function definition matches with one of file, then that function is not instrumented. The match is done on substrings: if the file parameter is a substring of the file name, it is considered to be a match.
For example, -finstrument-functions-exclude-file-list=/bits/stl,include/sys will exclude any inline function defined in files whose pathnames contain /bits/stl or include/sys.
Seulement, je n'arrive pas à l'utiliser correctement, l'exemple donné ne doit pas exclure TOUS les fichiers de la lib standard C++.
Version de GCC : 4.7.2 (MinGW)
OS : Windows 7 - 64 bits
Avez vous une idée ?
Merci beaucoup :)