vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
236 stars 37 forks source link

improve profiling output #237

Open bout3fiddy opened 1 month ago

bout3fiddy commented 1 month ago

update view; arrange profiling table on median and not mean (so users can ignore storage slot writes and look at computations instead)

What I did

call profile column looks like the following:

image
  1. one less column (no address column. it's all in column 1)
  2. paths are shorter
  3. values are arranged based on median gas costs and not average gas costs

profiling table looks like:

image
  1. paths are shorter
  2. values are arranged based on median gas costs

arranging by median means storage reads and writes do not populate the top of the table. this is much better when it comes to looking for computations to optimise.

How I did it

very simple code changes

How to verify it

run a profiling test

Description for the changelog

improve profiling table view and arrange data by median gas costs

Cute Animal Picture

image