From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1487 invoked by alias); 9 Sep 2004 23:54:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1443 invoked from network); 9 Sep 2004 23:54:24 -0000 Received: from unknown (HELO mproxy.gmail.com) (64.233.170.198) by sourceware.org with SMTP; 9 Sep 2004 23:54:24 -0000 Received: by mproxy.gmail.com with SMTP id 79so141468rnk for ; Thu, 09 Sep 2004 16:54:21 -0700 (PDT) Received: by 10.38.70.50 with SMTP id s50mr363614rna; Thu, 09 Sep 2004 16:54:20 -0700 (PDT) Received: by 10.38.73.80 with HTTP; Thu, 9 Sep 2004 16:54:20 -0700 (PDT) Message-ID: <56c62a890409091654547ce5fb@mail.gmail.com> Date: Thu, 09 Sep 2004 23:54:00 -0000 From: Gabriel Tanase Reply-To: gabrielt@cs.tamu.edu To: gcc-help@gcc.gnu.org Subject: gmon.out Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00080.txt.bz2 Howdy, I've been searching for a while with google to see if a similar topic was discussed but I didn't find a good explanation. Here is my problem. I would like when using the gprof( -pg option on the compile line) to be able to dump the info generated into a file that has the PID embedded somewhere in the name(something like gmon.out.2222 where 2222 is the process id for the program I am profiling). It is particularly usefull when profiling MPI programs and you would like to have individual traces for individual processes. It is a fairly easy fix but I am wondering if there is a philosophical issue that doesn't allow this to be included in the main branch of gcc. Most of the profile tools I know(valgrind, profile tools on IRIX) attach the PID to the trace... Thanks, Gabi