From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Tracing what is loading Date: Sun, 7 Dec 2008 09:58:56 +0000 Message-ID: References: <873ah0ombf.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228643972 28886 80.91.229.12 (7 Dec 2008 09:59:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 09:59:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Harry Putnam" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 11:00:37 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9GRG-0000VX-9W for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 11:00:34 +0100 Original-Received: from localhost ([127.0.0.1]:33829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9GQ5-0004k5-Gu for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 04:59:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9GPj-0004k0-RJ for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 04:58:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9GPi-0004jo-Kv for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 04:58:58 -0500 Original-Received: from [199.232.76.173] (port=55664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9GPi-0004jk-FD for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 04:58:58 -0500 Original-Received: from yw-out-1718.google.com ([74.125.46.153]:40022) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9GPi-0005kd-4g for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 04:58:58 -0500 Original-Received: by yw-out-1718.google.com with SMTP id 9so305139ywk.66 for ; Sun, 07 Dec 2008 01:58:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=72spyLYXJ4NExYuvQgRgDQxb5eqwHIvKRQac+pOo3L8=; b=JRxI6vqhVhF8VFLfwnK4hOa0F1wsdRlWodcU9mfoE21sbHAQQF8HrWEwCoqj7YZXdD cp0Xo0AArTUktq1DFjOzw7eoYVKoL7/0sWfcxVVMRmOwGXulBPXpdLT8WGnh5rX+FwIn zEcDEUSqjjd8YsMiLyEt8YqfqG3o+IfITi7Pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kL7+A6gV22DuF4XNRND5DYzHnOSw6q6XQfKgMC9VTLVRKOu5ZJVAONHulZ6OhXZ6LU gnb11IFJtI3cv5xUe6v+9pX7/7iqP0sP7TsQ64HZD9eSCgpVA6mBUnfi4o36kPuKUELJ DnjKOWlD1PEyHHNK49kNI25988cSpPlEPtVFM= Original-Received: by 10.100.178.2 with SMTP id a2mr911169anf.114.1228643936592; Sun, 07 Dec 2008 01:58:56 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Sun, 7 Dec 2008 01:58:56 -0800 (PST) In-Reply-To: <873ah0ombf.fsf@newsguy.com> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60410 Archived-At: On Sun, Dec 7, 2008 at 00:34, Harry Putnam wrote: > ;;[Tip from Kai G] make loaded files give a message > (defadvice load (before debug-log activate) > (message "Now loading: %s" (locate-library (ad-get-arg 0)))) > > That will tell exactly what is loading and in what order. That will skip calls to Fload from C code (defadvice does not work for calls from C). > Maybe there is a better or hopefully simpler way like possibly > compiling something directly into the binary when it is compiled. Not necessarily simpler. If you want to do that on a permanent basis, you can add code to Fload to show a message. If it is just once for some debugging, you can use the trace facilities of GDB. Juanma