]> code.delx.au - gnu-emacs/commitdiff
Invoke preprep to prepare dumped image for profiling.
authorAndrew Innes <andrewi@gnu.org>
Sat, 20 Feb 1999 20:34:14 +0000 (20:34 +0000)
committerAndrew Innes <andrewi@gnu.org>
Sat, 20 Feb 1999 20:34:14 +0000 (20:34 +0000)
Change prep options to profile libc functions and skip the startup
code.

nt/ftime.bat

index 1e35f2e87ba5dd1d9c4b98b6ada522a71036dcac..8b96a2d8bdd4cfc1575caa692d78e9600b4ad12d 100644 (file)
@@ -1,10 +1,20 @@
 @echo off\r
-set emacs_dir=c:\emacs\r
-prep /om /ft %emacs_dir%\src\obj\i386\emacs\r
+if (%1)==() echo Usage: %0 tracefile\r
+if (%1)==() goto done\r
+rem Need to fiddle with the dumped image so prep doesn't break it\r
+obj\i386\preprep ..\src\obj\i386\emacs.exe ..\src\obj\i386\pemacs.exe\r
+copy ..\src\obj\i386\temacs.map ..\src\obj\i386\pemacs.map\r
+rem -----------------------------------------------------------------\r
+rem    Use this version to ignore startup code\r
+prep /om /ft /inc libc.lib /sf _command_loop_1 ..\src\obj\i386\pemacs\r
+rem -----------------------------------------------------------------\r
+rem    Use this version to include startup code\r
+rem prep /om /ft /inc libc.lib ..\src\obj\i386\pemacs\r
+rem -----------------------------------------------------------------\r
 if errorlevel 1 goto done\r
-profile %emacs_dir%\src\obj\i386\emacs %1 %2 %3 %4 %5 %6 %7 %8 %9\r
+profile ..\src\obj\i386\pemacs %2 %3 %4 %5 %6 %7 %8 %9\r
 if errorlevel 1 goto done\r
-prep /m  %emacs_dir%\src\obj\i386\emacs\r
+prep /m  ..\src\obj\i386\pemacs\r
 if errorlevel 1 goto done\r
-plist  %emacs_dir%\src\obj\i386\emacs > info/emacs.prof\r
+plist ..\src\obj\i386\pemacs > %1\r
 :done\r