Haiyang-Sun / nodeprof.js

Instrumentation framework for Node.js compliant to ECMAScript 2020 based on GraalVM.
Apache License 2.0
53 stars 22 forks source link

literal filters #10

Closed Haiyang-Sun closed 5 years ago

Haiyang-Sun commented 5 years ago

The changes include an extra argument in the literal callback showing the type of literal, and an optional filter to instrument only given literal types.

The added feature is documented here: https://github.com/Haiyang-Sun/nodeprof.js/blob/literal-filter/src/ch.usi.inf.nodeprof/js/analysis/trivial/emptyTemplate.js#L30-L41

And tested here: https://github.com/Haiyang-Sun/nodeprof.js/tree/literal-filter/src/ch.usi.inf.nodeprof/js/analysis/literal-filter

The added feature is fully compatible with the existing analyses written with the previous version.