From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24702 invoked by alias); 15 Sep 2005 12:07:29 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24269 invoked by uid 22791); 15 Sep 2005 12:07:24 -0000 Received: from rwcrmhc13.comcast.net (HELO rwcrmhc12.comcast.net) (204.127.198.39) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 15 Sep 2005 12:07:24 +0000 Received: from raeburn.org (c-65-96-169-144.hsd1.ma.comcast.net[65.96.169.144]) by comcast.net (rwcrmhc13) with ESMTP id <200509151207180150033s9te>; Thu, 15 Sep 2005 12:07:19 +0000 Received: from [18.101.0.226] (laptop.raeburn.org [18.101.0.226]) by raeburn.org (8.12.11/8.12.11) with ESMTP id j8FC7HKK020137; Thu, 15 Sep 2005 08:07:17 -0400 (EDT) In-Reply-To: <432934C0.4050205@gandalf.sssup.it> References: <432934C0.4050205@gandalf.sssup.it> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: binutils@sources.redhat.com Content-Transfer-Encoding: 7bit From: Ken Raeburn Subject: Re: gprof Date: Thu, 15 Sep 2005 12:31:00 -0000 To: Michael Trimarchi X-SW-Source: 2005-09/txt/msg00172.txt.bz2 On Sep 15, 2005, at 04:45, Michael Trimarchi wrote: > Hi all, > I'd like to profile multithread application using gprof, but I > cannot profile thread !!! why? > Is the ITIMER signal problem? > regards > Michael I've tried this before... yes, depending on the system, you may need to play some games after thread creation to start profiling in the newly created thread, such as explicitly scheduling an interrupt timer. But also, if you care about the accuracy of the results, you may need to modify the C runtime support code for profiling, which typically updates the per-function data in a manner that is not thread-safe. Unfortunately, I don't have any code to show you for either issue, right now... Ken