You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
36ff961 CI: check that documentation builds without errors (Michael Zaikin)
8ff9bab Extend tracker trait with jet call tracing (Michael Zaikin)
Pull request description:
This PR generalizes `CaseTracker` to `ExecTracker` that now supports tracking jet calls (in addition to case branches). It is also now possible to run BitMachine with a custom tracker created outside of the crate.
This mechanim allows to implement jet tracer which pretty-prints jet arguments/result for each invocation, see https://github.com/m-kus/simfony/pull/2/files#diff-13e8b158f84f88059e0bd8631dfa9113112e30d7b8c21a15413d0ef36d2ea180
As a follow up it is proposed to further extend `ExecTracker` trait to allow visitor pattern on case/assert expressions. That would enable debug logging, similar to https://github.com/uncomputable/simfony-webide/blob/adb60d4e60c0d6b019ea13f64b1a166da3467d8d/src/function.rs#L145
Having these two features (jet calls tracking and debug symbols) combined it's fairly simple to output weighted stack traces (e.g. in pprof) and build a Simfony profiler.
ACKs for top commit:
apoelstra:
ACK 36ff961; successfully ran local tests
uncomputable:
ACK 36ff961
Tree-SHA512: e28f349eaf11dbe442413ebeb5018f9c7694d5a5d4d5cd37a05f793f89423cc2ca4e3337bc48128c551bf95e4617d016bf1fc8434d5090c9951773d8e5b469bd
0 commit comments