starknet-foundry
starknet-foundry copied to clipboard
MVP function level profiling
Which component is your feature related to?
Forge
Feature Request
@MaksymilianDemitraszek please elaborate on that 🙏
Blocked by #846
We want the graph to be a call graph of all functions not only entry-points.
Relevant mappins cairo <> sierra <> casm are already built in the cairo compiler. Cario vm returns an execution trace, which provides information which casm intructions were executed step by step.
We need to extend scarb to be able to produce artifacts from those which profiler will be able to consume as optional.
A good reference for the implementation is in the protostar repository, but you have to roll back to some older commits, something around November 2022.