microsoft / microsoft/perfview

should be able to use EventCounter as triggers like we do with perf counter

Open
#1,428 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.7k
Forks
775
Avg merge
5d 11h
Merged PRs (30d)
9

Description

in .NET Framework days we had perf counters and you could do triggers based on them, eg,

perfVIew.exe /nogui "/StartOnPerfCounter:.NET CLR Memory:# Gen 0 Collections:myproc>1800" "/StartOnPerfCounter:.NET CLR Memory:# Gen 0 Collections:myproc>2400" /GCCollectOnly collect

this would start collecting the trace when it sees GC#1800 in myproc.exe and stop the trace when it sees GC#2400 and that's super helpful (I use GCCollectOnly as an example if you want to collect something that's a lot more heavyweight like CPU samples/ThreadTime this is extremely important).

would be great to be able to use EventCounters in .net core as triggers in the same fashion.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing PerfView’s existing performance-counter trigger handling and the EventCounter collection path. No files or tests are named; done means supporting EventCounter thresholds that can start and stop a trace, including the illustrated GC collection scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, performance
Domain
performance, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.