summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2016-04-29 15:52:43 -0700
committerBruce Forstall <brucefo@microsoft.com>2016-05-02 08:30:55 -0700
commitd1d1424fe501fbfe9e45e01f753205abe4ed3be6 (patch)
tree83b4ca61625fde40ba1ad11e8b54804f37e93afe
parente18a26aabee632497cbf4be6258c3c930d004824 (diff)
downloadcoreclr-d1d1424fe501fbfe9e45e01f753205abe4ed3be6.tar.gz
coreclr-d1d1424fe501fbfe9e45e01f753205abe4ed3be6.tar.bz2
coreclr-d1d1424fe501fbfe9e45e01f753205abe4ed3be6.zip
Add support for easily collecting JitFuncInfoLogFile for the tests
Simply uncomment one of the three methods for doing the collection in the ryujit_x86_testenv.cmd file.
-rw-r--r--tests/x86/ryujit_x86_testenv.cmd41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/x86/ryujit_x86_testenv.cmd b/tests/x86/ryujit_x86_testenv.cmd
index 152c9c6a3a..8c52b6f979 100644
--- a/tests/x86/ryujit_x86_testenv.cmd
+++ b/tests/x86/ryujit_x86_testenv.cmd
@@ -12,3 +12,44 @@ set COMPLUS_NoGuiOnAssert=1
@REM as much as possible with RyuJIT, and not just stop at the first NYI. It means
@REM we will fall back to x86 legacy JIT for many functions.
@REM set COMPLUS_AltJitAssertOnNYI=1
+
+@REM -------------------------------------------------------------------------
+@REM A JitFuncInfoLogFile is a per-function record of which functions were
+@REM compiled, and what asserts and NYI were hit.
+@REM
+@REM If you wish to collect FuncInfo, choose one of the following collection
+@REM methods to use, by uncommenting the appropriate option.
+
+@REM Option 1: collect a single FuncInfoLogFile for all tests.
+@REM TO DO: set a single, fully-qualified pathname here.
+@REM ==== Uncomment below
+@REM set COMPLUS_JitFuncInfoLogFile=%TEMP%\JitFuncInfoLogFile.txt
+@REM ==== Uncomment above
+
+@REM Option #2: collect one FuncInfoLogFile per test, and put it in
+@REM the same directory as the test. Note that each tests lives in
+@REM its own directory, and the current directory is set to the unique
+@REM test directory before this script is invoked.
+@REM ==== Uncomment below
+@REM set __TestDir=%CD%
+@REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1%
+@REM set COMPLUS_JitFuncInfoLogFile=%__TestDir%\FuncInfo.txt
+@REM ==== Uncomment above
+
+@REM Option #3: collect one FuncInfoLogFile per test, and put all of
+@REM them in a separate directory tree rooted at %__FuncInfoRootDir%.
+@REM If that is set globally already, then use it. Otherwise, use a
+@REM default set here. The directory tree will mirror the test binary tree.
+@REM Note that the current directory is set to the unique test directory
+@REM before this script is invoked.
+@REM ==== Uncomment below
+@REM if not defined __FuncInfoRootDir set __FuncInfoRootDir=c:\FuncInfos
+@REM set __TestDir=%CD%
+@REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1%
+@REM if %__TestDir:~1,1%==: set __TestDir=%__TestDir:~3%
+@REM set __FuncInfoDir=%__FuncInfoRootDir%\%__TestDir%
+@REM if not exist %__FuncInfoDir% mkdir %__FuncInfoDir%
+@REM set COMPLUS_JitFuncInfoLogFile=%__FuncInfoDir%\FuncInfo.txt
+@REM ==== Uncomment above
+
+@REM -------------------------------------------------------------------------