starknet-foundry icon indicating copy to clipboard operation
starknet-foundry copied to clipboard

MVP function level profiling

Open war-in opened this issue 1 year ago • 2 comments

Which component is your feature related to?

Forge

Feature Request

@MaksymilianDemitraszek please elaborate on that 🙏

war-in avatar Feb 16 '24 15:02 war-in

Blocked by #846

piotmag769 avatar Feb 20 '24 19:02 piotmag769

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.

MaksymilianDemitraszek avatar Feb 23 '24 09:02 MaksymilianDemitraszek