ftime.bat 1.07 KB
Newer Older
Geoff Voelker's avatar
Geoff Voelker committed
1
@echo off
2 3 4 5 6 7
if (%1)==() echo Usage: %0 tracefile
if (%1)==() goto done
rem Need to fiddle with the dumped image so prep doesn't break it
obj\i386\preprep ..\src\obj\i386\emacs.exe ..\src\obj\i386\pemacs.exe
copy ..\src\obj\i386\temacs.map ..\src\obj\i386\pemacs.map
rem -----------------------------------------------------------------
8
rem    Use this version to profile explicit commands only.
9
prep /om /ft /sf _Fexecute_extended_command ..\src\obj\i386\pemacs
10
rem -----------------------------------------------------------------
11
rem    Use this version to ignore startup code
12
rem prep /om /ft /sf _command_loop_1 ..\src\obj\i386\pemacs
13 14
rem -----------------------------------------------------------------
rem    Use this version to include startup code
15
rem prep /om /ft ..\src\obj\i386\pemacs
16
rem -----------------------------------------------------------------
Geoff Voelker's avatar
Geoff Voelker committed
17
if errorlevel 1 goto done
18
profile ..\src\obj\i386\pemacs %2 %3 %4 %5 %6 %7 %8 %9
Geoff Voelker's avatar
Geoff Voelker committed
19
if errorlevel 1 goto done
20
prep /m  ..\src\obj\i386\pemacs
Geoff Voelker's avatar
Geoff Voelker committed
21
if errorlevel 1 goto done
22
plist ..\src\obj\i386\pemacs > %1
Geoff Voelker's avatar
Geoff Voelker committed
23
:done
24