@amcasey/ts-drop-shorter-than

Prune files created by tsc --generateTrace

Usage no npm install needed!

<script type="module">
  import amcaseyTsDropShorterThan from 'https://cdn.skypack.dev/@amcasey/ts-drop-shorter-than';
</script>

README

If the file generated by tsc --generateTrace is too large to open in your visualizer of choice, this choice can help trim it down by dropping all events shorter than X milliseconds. Generally speaking, such short events are hard to analyze visually anyway.

The script accepts three arguments:

  1. The minimum duration of an event in milliseconds
  2. The path to an existing trace file
  3. The path to a new, reduced trace file (will be silently overwritten)