changeset 24360:7524313da163

Invoke preprep to prepare dumped image for profiling. Change prep options to profile libc functions and skip the startup code.
author Andrew Innes <andrewi@gnu.org>
date Sat, 20 Feb 1999 20:34:14 +0000
parents 9c23e2b384a3
children 69b9caa187b0
files nt/ftime.bat
diffstat 1 files changed, 15 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/nt/ftime.bat	Sat Feb 20 18:57:09 1999 +0000
+++ b/nt/ftime.bat	Sat Feb 20 20:34:14 1999 +0000
@@ -1,10 +1,20 @@
 @echo off
-set emacs_dir=c:\emacs
-prep /om /ft %emacs_dir%\src\obj\i386\emacs
+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 -----------------------------------------------------------------
+rem    Use this version to ignore startup code
+prep /om /ft /inc libc.lib /sf _command_loop_1 ..\src\obj\i386\pemacs
+rem -----------------------------------------------------------------
+rem    Use this version to include startup code
+rem prep /om /ft /inc libc.lib ..\src\obj\i386\pemacs
+rem -----------------------------------------------------------------
 if errorlevel 1 goto done
-profile %emacs_dir%\src\obj\i386\emacs %1 %2 %3 %4 %5 %6 %7 %8 %9
+profile ..\src\obj\i386\pemacs %2 %3 %4 %5 %6 %7 %8 %9
 if errorlevel 1 goto done
-prep /m  %emacs_dir%\src\obj\i386\emacs
+prep /m  ..\src\obj\i386\pemacs
 if errorlevel 1 goto done
-plist  %emacs_dir%\src\obj\i386\emacs > info/emacs.prof
+plist ..\src\obj\i386\pemacs > %1
 :done