Closed SteveL-MSFT closed 3 years ago
Excellent feature idea!
I've parameterized the $Top
count - 5 might be too noisy when profiling small snippets, but not perhaps not comprehensive enough if you're looking at 100s (or 1000s 🙈 ) of lines of code.
Thanks @SteveL-MSFT @ajansveld for your contribution!
Fix build.ps1 to work on macOS by using
new-item
instead of mkdir UpdateMeasure-Script
to find top 5 slowest lines and mark them asTop
using a new member Update formatting whereTop
is$true
and$PSStyle
exists, then use a red backgroundThis makes it easy to see which top 5 lines are slowest