Write to same performance counter from multiple processes
I'm using the newer System.Diagnostics.PerformanceData set of api's to write to my counters and would like to increment / decrement a single counter from multiple processes simultaneously.

I've tried tweaking the CounterSetInstanceType in various ways with no success:

If i use Multiple or MultipleAggregate i always see a single instance in perfmon, but there is really a separate counter for each process and they overwrite each other. The same behavior happens with a Single counterset type.

When i try a gloablAggregate counterset type performance monitor doesn't seem to read the values at all.
Write to same performance counter from multiple processes
===

I'm using the newer System.Diagnostics.PerformanceData set of api's to write to my counters and would like to increment / decrement a single counter from multiple processes simultaneously.

I've tried tweaking the CounterSetInstanceType in various ways with no success:

If i use Multiple or MultipleAggregate i always see a single instance in perfmon, but there is really a separate counter for each process and they overwrite each other. The same behavior happens with a Single counterset type.

When i try a gloablAggregate counterset type performance monitor doesn't seem to read the values at all.