Look at the -p and -pg arguments to gcc/g++. However, you'll also need to look at prof or gprof, because you'll need one of those programs to analyze the profiling data. Thanks, Lyle -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Marcelo Roitburd Sent: Wednesday, June 16, 2004 4:25 PM To: gcc help Subject: newbiew at gcc argument Hi All! I'm a newbiew , i try to make a search in internte and don't found maybe i can't make a good serach.my question is how in g++ or gcc i can make a profile of each funtion used in the code, this mean is how much time i spend in each function. I know that i can do by argument, i don't want to write every entrey funtion time and every out funtion time.. anyone have some ideia? thank you marcelo