From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: byte-compile-call-tree Date: Wed, 15 Jan 2014 16:59:37 +0100 Message-ID: <8761pl5j86.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389801613 20235 80.91.229.3 (15 Jan 2014 16:00:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 16:00:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 15 17:00:18 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3St7-0005aW-P2 for ged-emacs-devel@m.gmane.org; Wed, 15 Jan 2014 17:00:17 +0100 Original-Received: from localhost ([::1]:55674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3St7-0005Rb-ED for ged-emacs-devel@m.gmane.org; Wed, 15 Jan 2014 11:00:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Ssx-0005Pj-Lr for emacs-devel@gnu.org; Wed, 15 Jan 2014 11:00:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Ssq-0000wn-8B for emacs-devel@gnu.org; Wed, 15 Jan 2014 11:00:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Ssq-0000wh-1a for emacs-devel@gnu.org; Wed, 15 Jan 2014 11:00:00 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W3Ssj-0004yv-LC for emacs-devel@gnu.org; Wed, 15 Jan 2014 16:59:53 +0100 Original-Received: from dslb-092-074-172-099.pools.arcor-ip.net ([92.74.172.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jan 2014 16:59:53 +0100 Original-Received: from michael_heerdegen by dslb-092-074-172-099.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jan 2014 16:59:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-092-074-172-099.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:nqMAIvdUPVTTG0nszFxeJdlwWxc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168464 Archived-At: Hello, `byte-compile-call-tree' is a great source of information about a library created as side effect when compiling. The information is more complete and reliable that one could reach easily with other means. 1. Currently, AFAIK the only mean to get the call tree is to bind `byte-compile-generate-call-tree' and compile. The problem is that view people know that, I think. It would be better if there was a command available that one can find. 2. There's even no mean to get the call tree as an expression without hacking bytecomp.el. The tree is destroyed by `display-call-tree' that prints the output to a buffer. 3. To the programmer, the current output is not so useful as such. Programmers have questions like "do I use cl stuff in my lib, or can I avoid to require cl-lib?". Or "I want to get rid of using lib-foo in my package - which of my functions call its function and which?". It is quite easy to extract this information from the call tree and sort stuff by library (in a ~30 lines). I first wanted to write a library for this kind of stuff, but I wonder if we should better do this in Emacs. Regards, Michael.