🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Nir Friedman Tue, 30 Apr 1991 15:27
Profiling C++ programs.
#540
Author: Nir Friedman
Date: Tue, 30 Apr 1991 15:27
19 lines
1184 bytes
Hello

	I am working in C++ using g++ (ver. 1.39.0) on sun4 and sun3.
	I'm trying to 'prof' and  'gprof' on my program, since it is
	quite large (25K lines). The compiler documentation (g++.texinfo
	updated 1.37) state that the -p and -pg options are not supported
	yet. I have noticed though, that when compiling with -p the
	compiler generate calls to 'mcount' at the right locations.

	The problem is that when I run the program, no profiling happens.
	I guess this has to do with  the startup module (crt1+.o ?) of g++.

	Do you know of any way of solving this ? or any way of profiling
	C++ programs ?
	
		Thanks in advance

			Nir Friedman
	
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads