Profiling a Truffle language

Gerard Krol gerard at gerardkrol.nl
Sun Jul 31 20:21:36 UTC 2016


Hi Christian,

On Sun, Jul 31, 2016 at 9:15 PM, Christian Humer <christian.humer at gmail.com>
wrote:

> On 31.07.2016 21:05:04, "Gerard Krol" <gerard at gerardkrol.nl> wrote:
>
> Thanks, that was very helpful. It was quite hard to get it working, but I
>> managed. For me it's still called TruffleProfiler (version 0.15 of
>> Truffle). Weirdly enough it was not picking up the class from the
>> truffle-debug jar through the @Registration annotation, so I had to copy
>> the class over (just adding a derived class with the annotation worked as
>> well).
>>
>> Sorry to hear that. Did you put the truffle-debug.jar on the normal or
> boot classpath? Could you maybe copy in your java command line that you
> were using, so I can potentially reproduce it?
>

I added it to truffle-debug to my pom.xml, and I'm currently using
the maven-shade-plugin to automatically include my dependencies into the
generated jar. That may be the wrong way to go about it, I'm not that
experienced with the classpath.


> Please also note that this version of the TruffleProfiler is based on
> instrumentation and is quite heavy. Therefore its results might not be very
> reliable.
> A more lightweight version based on sampling is coming soonish (1-3 weeks)
> to the Truffle tip.
>

That would be great, though I'm not looking forward to building Truffle
from source ;)

Regards,

Gerard


More information about the graal-dev mailing list