Hi,
There seems to be a strange issue in Windows Performance Recorder, where it might not load the profile file specified on the command line. To reproduce the problem:
1. Copy SampleWPRControlProfiles.wprp from the installation directory of Windows Performance Toolkit somewhere else e.g. c:\test (this dir will be used in subsequent steps).
2. Introduce an error to the copied profile file (e.g. duplicate a closing tag of one of the elements).
3. Open command prompt as Administrator and navigate to c:\test
4. In the command prompt run 'wpr -start SampleWPRControlProfiles.wprp'.
The problem: Step 4 should produce an error message, but instead the recording is started correctly.
Some additional tests:
I
1. Stop the recording started in step 4 above ('wpr -stop blah.etl').
2. Rename the profile file in c:\test to sample.wprp
3. Run 'wpr -start sample.wprp' in the command prompt
Result:
Now wpr correctly prints error message about incorrect XML format
II
1. Still with copy of profile called sample.wprp run 'wpr -start SampleWPRControlProfiles.wprp' in the command prompt
Result:
Correct error about file not found is displayed.
III
1. Rename the profile file in c:\test to SampleWPRControlProfiles.wprp
2. Rename the original sample profile from the installation directory to _SampleWPRControlProfiles.wprp
3. Run 'wpr -start SampleWPRControlProfiles.wprp' in the command prompt
Result:
Now wpr correctly prints error message about incorrect XML format
So it seems that WPR checks the current working directory when determining whether a profile file exists, but when it comes to loading a profile it first searches the installation directory. So if a profile file with the same name exists in both places the one from the installation directory is loaded (which is very confusing).
I hope this is the right forum to raise this issue as there isn't a forum dedicated to Assessment and Deployment Kit ADK. Please do let me know if there is a better place for this thread and I will move it there.
Also please let me know if you have any questions,
Thanks,
Rafal