I have updated Heat to allow it to harvest the performance counters from
a performance category. The code is part of the WixUtilExtension project
as that is where the PerformanceCategory and PerformanceCounter are
defined.
It is implemented so that you can run the following:
Heat perf "PerfTest" -sfrag -indent 2 -out perf.wxs
And it will produce:
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<Directory Id="TARGETDIR">
<Component Id="Component" Guid="PUT-GUID-HERE">
<PerformanceCategory Id="PerfTest" Name="PerfTest"
Help="Performance counters test"
xmlns="http://schemas.microsoft.com/wix/UtilExtension">
<PerformanceCounter Name="Counter 1" Help="Number of
operations executed" Type="numberOfItems32" />
<PerformanceCounter Name="Counter 2" Help="Timer 100ns"
Type="timer100Ns" />
</PerformanceCategory>
</Component>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ComponentGroup1">
<ComponentRef Id="Component" />
</ComponentGroup>
</Fragment>
</Wix>
Would you accept this addition to WixUtilExtension in to the v3.0 code
base?
Regards
Neil
Neil Sleightholm
X2 Systems Limited
[email protected] <mailto:[email protected]>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs