Skip to content

Instantly share code, notes, and snippets.

View cederlof's full-sized avatar

Erik Cederlöf cederlof

  • TietoEVRY
  • Uppsala
View GitHub Profile
# Perfmon Name and Help
$categoryName = "MyAppPerformance"
$categoryHelp = "MyApp"
$categoryType = [System.Diagnostics.PerformanceCounterCategoryType]::MultiInstance
# Fix it by Index, three arrays where indices must match
$counterName = "Count", "Time"
$counterType = "NumberOfItems32", "NumberOfItems32"
$counterHelp = "Count", "Time"