Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instrumenting javascript on stock JDK #204

Closed
jsyeo opened this issue Sep 11, 2019 · 1 comment
Closed

Instrumenting javascript on stock JDK #204

jsyeo opened this issue Sep 11, 2019 · 1 comment
Assignees
Labels
tooling Tools like debugger, profiler, memtracer, etc.

Comments

@jsyeo
Copy link

jsyeo commented Sep 11, 2019

Am I missing something? I tried the instrumentation examples from the graal repo here: https://github.com/oracle/graal/tree/master/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/examples but it seems like my instruments are not getting automatically discovered. When I tried to do

context.getEngines().getInstruments(CoverageExample.ID).lookup(Object.class);

I get a null pointer exception because the Map returns null. I am doing this in the context of a stock JDK. Does that change the way instruments are automatically discovered? Is there something special I must do to instrument javascript in my stock JDK?

@boris-spas
Copy link
Member

Could you share a bit more about how you build/run the examples?

@wirthi wirthi added the tooling Tools like debugger, profiler, memtracer, etc. label Mar 19, 2020
@jsyeo jsyeo closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Tools like debugger, profiler, memtracer, etc.
Projects
None yet
Development

No branches or pull requests

4 participants