Cairo profiler #542
Replies: 4 comments
-
An awesome feature to have is something like the tenderly flame graph for gas usage. Ideally this is something that can be created and viewed locally in the browser. Here is an example from tenderly: |
Beta Was this translation helpful? Give feedback.
-
We plan to implement first version of profiler as a We will use pprof as our interface because it supports lots of formats by default (graph, flame graph). |
Beta Was this translation helpful? Give feedback.
-
Updating about the progress, we are currently successfully managed to profile memholes. Currently I am working on the support for including called contracts into profile. |
Beta Was this translation helpful? Give feedback.
-
Hi everybody. I am doing some research on gas optimisation tool for Cairo contracts (Cairo profiler) we will build in the near future as a part of Protostar.
It would provide detailed analysis of each function cost and how many times each function is used in the executed test, similar to Foundry(https://book.getfoundry.sh/forge/gas-reports). It would also include profiling with fuzz tests to help find edge cases.
I’m wondering what features would you expect from such a tool? Do you maybe know any interesting tooling we could get inspired by?
Beta Was this translation helpful? Give feedback.
All reactions