amcasey/ts-analyze-trace

Customizable thresholds constants

fabiospampinato opened this issue · 0 comments

There are a bunch of constants that govern ultimately how many results are shown:

const thresholdDuration = 5E5; // microseconds
const minDuration = 1E5; // microseconds
const minPercentage = 0.6;

IMHO perhaps those constants should be customizable from the CLI, or even better there should just be a "limit" flag to limit the number of files outputted, which by default could be 10 or even the current essentially "auto" limit.