Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Performance Counters - Multi-instance or average based counters are not created properly with heat #5457
heat.exe : error HEAT0001 : Category 'My Test Counters' is marked as multi-instance. Performance counters in this category can only be created with instance names.
The issue seems to be in wix3/src/ext/UtilExtension/wixext/PerformanceCategoryHarvester.cs:
That constructor is not valid for multiple-instance counters; an instance must be specified when creating it.
Additionally, because the current code loops over pcc.ReadCategory().Values, Averages-based counters will not work. Average counters require two counters to be setup, for example AverageTimer32 AND AverageBase. AverageBase. AverageBase is not returned in ReadCategory (because it's not to be used stand-alone...it doesn't even show up in perfmon), however it still must be registered.
Submitted pull request: