From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Sun, 26 Dec 2021 12:23:10 +0200 Message-ID: <83ilvbpsvl.fsf@gnu.org> References: <9C5A86D6-0E7D-4DDF-B211-278EF9AC7E01@gmail.com> <87a6gq5mxl.fsf@gmail.com> <877dbu5mgj.fsf@gmail.com> <0BB906F7-BD3A-41CC-9783-19AA16934497@gmail.com> <83pmplq9f3.fsf@gnu.org> <5B304D80-2969-4F59-9A90-412D0A284912@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, theo@thornhill.no, ubolonton@gmail.com, emacs-devel@gnu.org, p.stephani2@gmail.com, monnier@iro.umontreal.ca, yoavm448@gmail.com, stephen_leake@stephe-leake.org, john@yates-sheets.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 26 11:24:36 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n1Qhf-0004EK-Eq for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Dec 2021 11:24:35 +0100 Original-Received: from localhost ([::1]:37214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1Qhe-0005MP-9D for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Dec 2021 05:24:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1Qg6-00044b-L7 for emacs-devel@gnu.org; Sun, 26 Dec 2021 05:22:58 -0500 Original-Received: from [2001:470:142:3::e] (port=49718 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1Qg6-0004OM-0u; Sun, 26 Dec 2021 05:22:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=FJ4/siBWABm8nyAr8fVmJOaiahyfgwst7zatvQZMvUM=; b=N4JJBC+4sB+Dc+gHALj8 tT5LkZUIhCHECBlS7gfyJ7LO/z0pETqxW8UUwo9PqEpESXfsraZVK5kxY2PQX30vJ+EbCThXLKPCd hoXO2PBS7XhE8rTKhB6+cnj3eufOW8YbtX83JCVUeQH8XhQrFZg2rM5U4DYjjvFw4Uiw5X56BAwXb CMTnTTptJYZIJ3xRp4oMbXAoJP+m/5kOHC7M3lNz5+9/uwjBzE18a5vUoSO2hQj48+NaOcfMnefO7 ZY3sBxLC5EBtOEmbb4gBdziuvOaNJ/Xbphyq/+a9UDMQgMlwQOseG1hGqOD/++e9Jq0GoIihAKXcf shJZn6txZNYjng==; Original-Received: from [87.69.77.57] (port=4477 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1Qg5-0000pT-PD; Sun, 26 Dec 2021 05:22:58 -0500 In-Reply-To: <5B304D80-2969-4F59-9A90-412D0A284912@gmail.com> (message from Yuan Fu on Sun, 26 Dec 2021 01:50:58 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283276 Archived-At: > From: Yuan Fu > Date: Sun, 26 Dec 2021 01:50:58 -0800 > Cc: Yoav Marco , > Clément Pit-Claudel , > Emacs developers , > John Yates , > Stefan Monnier , > Philipp , > Stephen Leake , > Theodor Thornhill , > ubolonton@gmail.com > > > > > On Dec 25, 2021, at 2:13 AM, Eli Zaretskii wrote: > > > >> From: Yuan Fu > >> Date: Sat, 25 Dec 2021 00:31:26 -0800 > >> Cc: Clément Pit-Claudel , > >> Eli Zaretskii , > >> Emacs developers , > >> John Yates , > >> Stefan Monnier , > >> Philipp , > >> Stephen Leake , > >> Theodor Thornhill , > >> ubolonton@gmail.com > >> > >> Sounds good, thanks. Eli, is there any profiling primitives in Emacs? How do you usually profile Emacs? > > > > If it's mainly Lisp code, then "M-x profiler-start RET RET" followed > > by "M-x profiler-report RET”. > > Thanks. I mean C functions. Emacs can be built with profiling support, see --enable-profiling. Then you can run gprof on the output of an Emacs session. Another option is to use perf on GNU/Linux.