From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bohdan Vlasyuk To: gcc@gcc.gnu.org Subject: Profiling and C++ Date: Wed, 18 Jul 2001 01:59:00 -0000 Message-id: <20010718115218.A4591@kivc.vstu.vinnica.ua> X-SW-Source: 2001-07/msg01252.html Is it true that I can't do any profiling with my C++ programs? I've tried it, and it doesn't seem to work for me. That's piece of makefile: CC = g++ CFLAGS = -g -pg LFLAGS = $(CFLAGS) LIBS = COMPILE = $(CC) $(CFLAGS) -c LINK = $(CC) $(LFLAGS) $(LIBS) $(exe): $(o_files) $(LINK) -o $(exe) $(o_files) %.cpp.o: $(COMPILE) $< -o $@ that's gprof output: Each sample counts as 0.01 seconds. no time accumulated % cumulative self self total time seconds seconds calls Ts/call Ts/call name 0.00 0.00 0.00 18568 0.00 0.00 data_start .... index % time self children called name 0.00 0.00 18568/18568 (2) [1] 0.0 0.00 0.00 18568 data_start [1] ----------------------------------------------- -- There is no opinion so absurd that some philosopher will not express it. -- Marcus Tullius Cicero, "Ad familiares"