From my very brief go-over of the code, it looks like it's only looking for some of the framework-specific trace messages on traced scripts. For more accurate metric, we can add some kind of small markers onto each script all scripts. Something as small as \ctx -> (\_ -> (actual script)) "Plutarch" will be enough to track both traced and un traced scripts. Cost of one extra lambda abstraction will be near negligible. The actual "tag" can be chosen more carefully so that it can be as small and with minimal overlap.
At least for frameworks that implement something similar, we can grab more accurate metric.
From my very brief go-over of the code, it looks like it's only looking for some of the framework-specific trace messages on traced scripts. For more accurate metric, we can add some kind of small markers onto each script all scripts. Something as small as
\ctx -> (\_ -> (actual script)) "Plutarch"will be enough to track both traced and un traced scripts. Cost of one extra lambda abstraction will be near negligible. The actual "tag" can be chosen more carefully so that it can be as small and with minimal overlap.At least for frameworks that implement something similar, we can grab more accurate metric.