The code I'm researching loosely follows this flow:
- My first callback
- Black box
- My second callback
I can modify 1 and 3 no problem but modifying 2 is difficult.
However I think that step 2 has some optimization problems, namely:
- instantiates lots of objects
- throws/catches lots of exceptions (not logged)
Is there a way to count these two metrics?