Skip to content

Instantly share code, notes, and snippets.

{
"pineapple_on_pizza": "true"
}
@johnterickson
johnterickson / Program.cs
Created June 8, 2020 15:50
ActionBlock fun
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
namespace ActionBlockTest
{
class Program
{
@johnterickson
johnterickson / pipelines.yml
Created May 24, 2019 21:29
Capture CPU usage in Azure Pipelines
- script: |
mkdir %CD%\trace
- script: |
logman create counter BuildCounters -si 00:05 -f csv -o %CD%\trace\perf.csv
- script: |
logman update BuildCounters -c "\Processor(_Total)\%% Processor Time"
- script: |
logman start BuildCounters
# do stuff
- script: |