Thread View: gnu.g++
2 messages
2 total messages
Started by Sanjiv Gossain
Thu, 11 May 1989 09:54
Profiling in g++
Author: Sanjiv Gossain
Date: Thu, 11 May 1989 09:54
Date: Thu, 11 May 1989 09:54
13 lines
671 bytes
671 bytes
I recently remember seeing a posting asking whether g++ would support profiling in the near future, but I don't remember seeing a reply. Does anyone know the answer? Sanjiv Gossain ESE Dept. University Of Essex Colchester CO4 3SQ UK goss%ese.essex.ac.uk@nsfnet-relay.ac.uk
Profiling in g++
Author: Michael Tiemann
Date: Thu, 11 May 1989 16:01
Date: Thu, 11 May 1989 16:01
12 lines
1040 bytes
1040 bytes
The answer is that I don't have time to work on it. Someone must write a gcrt0.c which performs appropriate startup code. A C++-style alternative is to write a profiling object which does the right things, and whos constructor starts the right routines. By linking such an object in with the code, it C++ global constructor will be called, starting the profiling monitor, and all should be peachy keen. The destructor should write out the data it collected during the run, and put it in a file, e.g., gmon.out. This would make a nice addition to libg++. Michael
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