core/carbide_releases/run.jstack.bat
branchRCL_2_4
changeset 1276 7f978d9fb8f6
parent 888 3419376b791a
equal deleted inserted replaced
1273:dcb72c9e2126 1276:7f978d9fb8f6
     1 echo off
     1 echo off
     2 
     2 
     3 rem This is a utility batch file to get stack information from the Carbide.c++.2.5.exe process.
     3 rem This is a utility batch file to get stack information from the Carbide.c++.2.6.exe process.
     4 rem In order to run it successfully, you will need to have a full JDK installed of version 1.6 or higher.
     4 rem In order to run it successfully, you will need to have a full JDK installed of version 1.6 or higher.
     5 rem See http://java.sun.com/javase/downloads/index.jsp for download information.
     5 rem See http://java.sun.com/javase/downloads/index.jsp for download information.
     6 rem If the Carbide process is found (and only one should be running) then stack information will be found in %OUTFILE%.
     6 rem If the Carbide process is found (and only one should be running) then stack information will be found in %OUTFILE%.
     7 
     7 
     8 
     8 
    16 if not exist %JSTACK% GOTO END
    16 if not exist %JSTACK% GOTO END
    17 
    17 
    18 
    18 
    19 del %OUTFILE%
    19 del %OUTFILE%
    20 
    20 
    21 rem echo Carbide.c++.2.5.exe >  %outfile%
    21 rem echo Carbide.c++.2.6.exe >  %outfile%
    22 
    22 
    23 echo
    23 echo
    24 echo Searching for Carbide.c++ process...
    24 echo Searching for Carbide.c++ process...
    25 
    25 
    26 FOR /F "tokens=2" %%i IN ('tasklist /FI "IMAGENAME eq  Carbide.c++.2.5.exe"
    26 FOR /F "tokens=2" %%i IN ('tasklist /FI "IMAGENAME eq  Carbide.c++.2.6.exe"
    27 /NH') DO @%JSTACK% %%i >  %OUTFILE%
    27 /NH') DO @%JSTACK% %%i >  %OUTFILE%
    28 
    28 
    29 
    29 
    30 echo
    30 echo
    31 if exist %OUTFILE% echo Check for results in %OUTFILE%
    31 if exist %OUTFILE% echo Check for results in %OUTFILE%
    32 if not exist %OUTFILE% echo ERROR: Results not written. Is Carbide.c++.2.5.exe running?
    32 if not exist %OUTFILE% echo ERROR: Results not written. Is Carbide.c++.2.6.exe running?
    33 
    33 
    34 :END
    34 :END
    35 
    35 
    36 pause
    36 pause
    37 
    37