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?
59
59
.*at <js> log.log.js:1-6:.*
60
60
.*at <js> areYouBad.log.js:26:.*
61
61
.*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
63
63
insight: Unknown attribute misnamedAttribute
64
64
>[1] js --jvm --insight=agent-error3.js log.js
65
65
insight: Unknown event type 'enterOrLeave'.*
Original file line number Diff line number Diff line change 23
23
#
24
24
>[0?] export TOOLCHAIN_PATH=`lli --print-toolchain-path`
25
25
>[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
27
27
found new prime number (<unavailable>|2)
28
28
found new prime number (<unavailable>|3)
29
29
found 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
28
28
Python: Hooks are ready!
29
29
Python: observed loading of test.py
30
30
Ahoj
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
32
32
Python: Insight version 1.2 is launching
33
33
Python: Hooks are ready!
34
34
Python: observed loading of agent-fib.js
Original file line number Diff line number Diff line change 53
53
2 calls to cat
54
54
2 calls to stdout
55
55
===================
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
- ===================
64
56
> cat > ${TMP_DIR}/test.js
65
57
< 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
67
59
Warning.*agentscript.*deprecated.*insight.*
68
60
R: Initializing GraalVM Insight script
69
61
R: Hooks are ready!
70
62
R: observed loading of.*test.js
71
63
hi 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
78
65
R: Initializing GraalVM Insight script
79
66
R: Hooks are ready!
80
67
R: observed loading of.*test.js
Original file line number Diff line number Diff line change 25
25
>[0] javac -cp $CP HeapQuery.java
26
26
#> export TMP_DIR=/tmp
27
27
> 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
29
29
dumping state of Ruby memory when executing Welcome#welcome
30
30
Hello World!
31
31
# 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
28
28
Ruby: Hooks are ready!
29
29
Ruby: observed loading of .*test.rb
30
30
Ahoj
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
32
32
Ruby: Insight version 1.2 is launching
33
33
Ruby: Hooks are ready!
34
34
Ruby: observed loading of agent-fib.js
@@ -37,4 +37,4 @@ minusOne 3
37
37
minusOne 2
38
38
minusOne 2
39
39
Three 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