From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45236 invoked by alias); 5 Aug 2015 19:41:46 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 45225 invoked by uid 89); 5 Aug 2015 19:41:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.98.7 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mail-yk0-f171.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=kIYRpx+I6OEl/Eo7+cdBJB/Z2EUErD4DjJASVNBJquQ=; b=ObS9t6eGfdKleOPxTh63AEce8jgp29885fi37P8VhBelsRk60QqeDrdNNxdI0DqLr5 3DTLakrtxBtCZ5Y1LaAghhJ7I5IawzPPxuzmCeLJLE3co6ZEe57np7WUlqTVmY7zt7LS yayNxOes+6dJSrz+qmbmJX/wGCN8EjkYR8eacZdo5xtQ813gBZYwbz9h+6ebVArKJHE/ PdR+XywC5URC88AaXf/avCxW1Sej0T8BNiy75QuGLwg8nrVSmS5YEW8i1EikmszJpPsk MMcizxLW6YrJvVaveYezTuIeaUMhZE/7b4cnrbGEdhn6Bznu9D5mrhDZ3JPXRb3h4evY 3yvg== X-Gm-Message-State: ALoCoQnUx1p62JFz2pb8lyWZzx6RVXtpkK7IzmMIROpo+kQjlB23O0l0agYLcrnXu/5pJT45ABTa MIME-Version: 1.0 X-Received: by 10.13.204.130 with SMTP id o124mr11245890ywd.171.1438803702068; Wed, 05 Aug 2015 12:41:42 -0700 (PDT) In-Reply-To: <1438647513.21752.13.camel@surprise> References: <1438028999.15571.92.camel@surprise> <55B6AEAE.9030806@starynkevitch.net> <1438647513.21752.13.camel@surprise> Date: Thu, 01 Jan 2015 00:00:00 -0000 Message-ID: Subject: Re: JIT compilation speed From: Dibyendu Majumdar To: David Malcolm Cc: Basile Starynkevitch , jit@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-q3/txt/msg00135.txt.bz2 On 4 August 2015 at 01:18, David Malcolm wrote: > FWIW, the timer patch: > https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02715.html > is now in trunk (r226530). > > So if you're using trunk, you should be able to: > > /* One-time initialization. */ > gcc_jit_timer *timer = gcc_jit_timer_new (); > > > > /* For all of your contexts, have them all use the > same shared timer: */ > gcc_jit_context_set_timer (ctxt, timer); > > > > /* On shutdown, print the accumulated timings. */ > gcc_jit_timer_print (timer, stderr); > gcc_jit_timer_release (timer); > > to get a profile on stderr of where all that time is being spent. > Thanks Dave. I am currently tied up with nailing down an elusive bug in Ravi - and have not had time to look at libgccjit related work. But I hope to get back to it soon. Will keep you posted. Regards Dibyendu