diff options
| author | Andrew Innes | 1999-02-20 20:34:14 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-02-20 20:34:14 +0000 |
| commit | af51687cb69713ae3d94f021891fe28970349c62 (patch) | |
| tree | 6955e20932246b94d2b4d594f4aa543ca9fc965f | |
| parent | 870cfc5510990cb248046e886ee261fd5bed02e1 (diff) | |
| download | emacs-af51687cb69713ae3d94f021891fe28970349c62.tar.gz emacs-af51687cb69713ae3d94f021891fe28970349c62.zip | |
Invoke preprep to prepare dumped image for profiling.
Change prep options to profile libc functions and skip the startup
code.
| -rw-r--r-- | nt/ftime.bat | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/nt/ftime.bat b/nt/ftime.bat index 1e35f2e87ba..8b96a2d8bdd 100644 --- a/nt/ftime.bat +++ b/nt/ftime.bat | |||
| @@ -1,10 +1,20 @@ | |||
| 1 | @echo off | 1 | @echo off |
| 2 | set emacs_dir=c:\emacs | 2 | if (%1)==() echo Usage: %0 tracefile |
| 3 | prep /om /ft %emacs_dir%\src\obj\i386\emacs | 3 | if (%1)==() goto done |
| 4 | rem Need to fiddle with the dumped image so prep doesn't break it | ||
| 5 | obj\i386\preprep ..\src\obj\i386\emacs.exe ..\src\obj\i386\pemacs.exe | ||
| 6 | copy ..\src\obj\i386\temacs.map ..\src\obj\i386\pemacs.map | ||
| 7 | rem ----------------------------------------------------------------- | ||
| 8 | rem Use this version to ignore startup code | ||
| 9 | prep /om /ft /inc libc.lib /sf _command_loop_1 ..\src\obj\i386\pemacs | ||
| 10 | rem ----------------------------------------------------------------- | ||
| 11 | rem Use this version to include startup code | ||
| 12 | rem prep /om /ft /inc libc.lib ..\src\obj\i386\pemacs | ||
| 13 | rem ----------------------------------------------------------------- | ||
| 4 | if errorlevel 1 goto done | 14 | if errorlevel 1 goto done |
| 5 | profile %emacs_dir%\src\obj\i386\emacs %1 %2 %3 %4 %5 %6 %7 %8 %9 | 15 | profile ..\src\obj\i386\pemacs %2 %3 %4 %5 %6 %7 %8 %9 |
| 6 | if errorlevel 1 goto done | 16 | if errorlevel 1 goto done |
| 7 | prep /m %emacs_dir%\src\obj\i386\emacs | 17 | prep /m ..\src\obj\i386\pemacs |
| 8 | if errorlevel 1 goto done | 18 | if errorlevel 1 goto done |
| 9 | plist %emacs_dir%\src\obj\i386\emacs > info/emacs.prof | 19 | plist ..\src\obj\i386\pemacs > %1 |
| 10 | :done | 20 | :done |