JIT compilation speed
Dibyendu Majumdar
mobile@majumdar.org.uk
Thu Jan 1 00:00:00 GMT 2015
On 4 August 2015 at 01:18, David Malcolm <dmalcolm@redhat.com> 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
More information about the Jit
mailing list