File tree Expand file tree Collapse file tree 6 files changed +8
-21
lines changed Expand file tree Collapse file tree 6 files changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ good you are?
5959.*at <js> log.log.js:1-6:.*
6060.*at <js> areYouBad.log.js:26:.*
6161.*at <js> :program.<eval_script>:1:0-10.
62- >[1] js --polyglot --jvm --insight=agent-error2.rb log.js
62+ >[1] js --jvm --polyglot --insight=agent-error2.rb log.js
6363insight: Unknown attribute misnamedAttribute
6464>[1] js --jvm --insight=agent-error3.js log.js
6565insight: Unknown event type 'enterOrLeave'.*
Original file line number Diff line number Diff line change 2323#
2424>[0?] export TOOLCHAIN_PATH=`lli --print-toolchain-path`
2525>[0?] ${TOOLCHAIN_PATH}/clang agent-sieve.c -g -O0 -lm -o ${TMP_DIR}/sieve
26- >[1] lli --polyglot --insight=agent-limit.js --experimental-options ${TMP_DIR}/sieve
26+ >[1] lli --jvm -- polyglot --insight=agent-limit.js --experimental-options ${TMP_DIR}/sieve
2727found new prime number (<unavailable>|2)
2828found new prime number (<unavailable>|3)
2929found new prime number (<unavailable>|5)
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Python: Insight version 1.2 is launching
2828Python: Hooks are ready!
2929Python: observed loading of test.py
3030Ahoj
31- > js --polyglot --insight=agent-python.py --experimental-options agent-fib.js
31+ > js --jvm -- polyglot --insight=agent-python.py --experimental-options agent-fib.js
3232Python: Insight version 1.2 is launching
3333Python: Hooks are ready!
3434Python: observed loading of agent-fib.js
Original file line number Diff line number Diff line change 5353 2 calls to cat
5454 2 calls to stdout
5555===================
56- > Rscript --polyglot --insight=agent-histogram.js ${TMP_DIR}/fib.R
57- 8
58- ==== Histogram ====
59- 15 calls to fib
60- 3 calls to <repl wrapper>
61- 2 calls to cat
62- 2 calls to stdout
63- ===================
6456> cat > ${TMP_DIR}/test.js
6557< print('hi js!')
66- > polyglot --jvm --agentscript=agent-r.R --experimental-options ${TMP_DIR}/test.js
58+ > js --jvm --polyglot --agentscript=agent-r.R --experimental-options ${TMP_DIR}/test.js
6759Warning.*agentscript.*deprecated.*insight.*
6860R: Initializing GraalVM Insight script
6961R: Hooks are ready!
7062R: observed loading of.*test.js
7163hi js!
72- > polyglot --jvm --insight=agent-r.R ${TMP_DIR}/test.js
73- R: Initializing GraalVM Insight script
74- R: Hooks are ready!
75- R: observed loading of.*test.js
76- hi js!
77- > polyglot --insight=agent-r.R ${TMP_DIR}/test.js
64+ > js --jvm --polyglot --insight=agent-r.R ${TMP_DIR}/test.js
7865R: Initializing GraalVM Insight script
7966R: Hooks are ready!
8067R: observed loading of.*test.js
Original file line number Diff line number Diff line change 2525>[0] javac -cp $CP HeapQuery.java
2626#> export TMP_DIR=/tmp
2727> rm -rf /tmp/ruby*hprof*
28- > truffleruby --polyglot --heap.dump=$TMP_DIR/ruby.hprof --insight=agent-ruby-dump.js hello-world.rb
28+ > truffleruby --jvm -- polyglot --heap.dump=$TMP_DIR/ruby.hprof --insight=agent-ruby-dump.js hello-world.rb
2929dumping state of Ruby memory when executing Welcome#welcome
3030Hello World!
3131# check one frame was captured
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Ruby: Insight version 1.2 is launching
2828Ruby: Hooks are ready!
2929Ruby: observed loading of .*test.rb
3030Ahoj
31- > js --polyglot --insight=agent-ruby.rb --experimental-options agent-fib.js
31+ > js --jvm -- polyglot --insight=agent-ruby.rb --experimental-options agent-fib.js
3232Ruby: Insight version 1.2 is launching
3333Ruby: Hooks are ready!
3434Ruby: observed loading of agent-fib.js
@@ -37,4 +37,4 @@ minusOne 3
3737minusOne 2
3838minusOne 2
3939Three is the result 3
40- # >[0?] node --js.print --polyglot --insight=agent-ruby.rb --experimental-options agent-fib.js
40+ # >[0?] node --js.print --jvm -- polyglot --insight=agent-ruby.rb --experimental-options agent-fib.js
You can’t perform that action at this time.
0 commit comments