pgosweep
Writes all profile data to the .pgc file, closes the .pgc file, and resets profile data in memory to zero.
pgsoweep options image pgcfile
where:
- image
The .exe or .dll file that was created with /LTCG:PGINSTRUMENT.
- pgcfile
The.pgc file where the data counts for this run should be written.
- options (optional)
In addition to /? or /help, you can also specify /noreset. /noreset preserves profiling information in memory. By default, profiling information in memory is cleared. If /noreset is specified, subsequent .pgc files will contain profile information that was added to .pgc files that were created using /noreset.
Remarks
When you name your .pgc file (pgcfile) you can use the standard format, which is appname**!**n.pgc. If you use this format, this data will be located in the /LTCG:PGO phase. If you do not use the standard format, you must then use pgomgr to merge the .pgc files.
Example
pgosweep myapp.exe myapp1.pgc
In this example, the current profile information for myapp.exe will all be written to myapp1.pgc.