Skip to content

Instantly share code, notes, and snippets.

View amcasey's full-sized avatar

Andrew Casey amcasey

  • Microsoft
  • Redmond, WA, USA
View GitHub Profile
@amcasey
amcasey / analyze-trace.ts
Created December 18, 2020 17:54
Trace summary script
import { assert } from "console";
if (process.argv.length !== 3) {
const path = require("path");
console.error(`Usage: ${path.basename(process.argv[0])} ${path.basename(process.argv[1])} trace_path`);
process.exit(1);
}
const inPath = process.argv[2];
const minDuration = 1E5;