cheesestraws / calculogue

The Calculogue is an exercise in comparative programming.
5 stars 2 forks source link

Spec: add verb for profiling support? #12

Open fallax opened 4 years ago

fallax commented 4 years ago

Maybe keep track of "performance" data for people who like to have fun over-optimising, e.g.:

  1. number of operations performed
  2. maximum stack size reached
  3. maximum depth of contexts

Trigger this with something like \profile=1 and stop profiling with \profile=0. This should be super easy for interpreter implementers to add.