-
Notifications
You must be signed in to change notification settings - Fork 326
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
Instrumenter to observe behavior of nodes with UUID #7833
Conversation
How can one register the callbacks? enable_instrumentation =
called uuid:Text =
IO.println "starting: "+uuid
update uuid:Text result =
IO.println "finished: "+uuid+" with value: "+result.to_text
fn uuid:Text fn:Function args:(Vector Any) =
IO.println "fn_call: "+uuid+" with fn: "+fn.to_text
builder = Meta.meta .func1 . instrument
builder . on_enter called . on_return update . on_call fn . activate and then make sure you call this registration before doing the main =
operator3 = enable_instrumentation
....
|
fc1d8af
to
99cb39e
Compare
...ne/runtime-instrument-common/src/main/java/org/enso/interpreter/instrument/RuntimeCache.java
Outdated
Show resolved
Hide resolved
legit failure (surprisingly only on windows) |
Legit failure on Windows!? Oh, no the meta-data section parsing is so fragile. For example I wanted to format each UUID on separate line e.g.: [
[{"index":{"value":127},"size":{"value":3}},"00000000-aaaa-bbbb-0000-000000000000"],
[{"index":{"value":69},"size":{"value":61}},"00000000-ffff-bbbb-0000-000000000000"],
[{"index":{"value":214},"size":{"value":5}},"00000000-eeee-bbbb-2222-000000000000"]
] and that failed. CCing @kazcw, can't we:
Summarized as #7989 and now I have to boot into Windows to find out what is wrong... |
08a760a
to
eb9964d
Compare
eb9964d
to
0271073
Compare
0271073
to
0f20687
Compare
Pull Request Description
Exposing instrumentation capabilities to Enso. Fixes #7683.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,