But I need to profile some of my functions and inside these functions, std classes are used. -----Original Message----- From: U.Mutlu <um@xxxxxxxxxxx> Sent: Wednesday, 25 July 2018 5:41 PM To: Ming Cheng <Ming.Cheng@xxxxxxxxxxxxx>; gcc-help@xxxxxxxxxxx Subject: Re: -finstrument-functions Ming Cheng wrote on 07/25/2018 09:35 AM: > Hi, > > How to inform GCC/G++ not to add __cyg_profile_func_enter/__cyg_profile_func_exit for a whole class, especially std classes like vector? I think it must be the compile option -fno-instrument-functions