stellar / rs-soroban-env

Rust environment for Soroban contracts.
Apache License 2.0
60 stars 40 forks source link

Improve budget tracker #1267

Closed jayz22 closed 9 months ago

jayz22 commented 9 months ago

What

Improve the budget tracker. With a bit code reorg and tightening. The BudgetTracker used to contain the (iterations, inputs) pair for each cost type. This PR adds to it the cpu, mem costs.

Why

get_tracker can return granular costs which can be filtered/aggregated downstream for better metrics.

Known limitations

[TODO or N/A]