comparison gpf/BIN/setup_function_timing.bat @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 @echo on
2
3 @if (%2)==(%3) (@goto labelusage)
4
5 @echo Clearing previously set variables ...
6 @if exist %srcfiles% (unset srcfiles)
7 @if exist %exe% (unset exe)
8 @if exist %outdir% (unset outdir)
9 @if exist %exedir% (unset exedir)
10 @if exist %mapfile% (unset mapfile)
11 @if exist %methode% (unset method)
12 @if exist %arg1% (unset arg1)
13 @if exist %arg2% (unset arg2)
14 @echo Done
15
16 set method=FT
17 @set arg1=FT
18 @set arg2=/ST
19 @set rsp=%1
20 @set outpath_ext=%2
21
22 call profile_config.bat %3 no_skip %outpath_ext%
23
24 @rem set outdir=%outdir%%outpath_ext%
25 @rem echo %outdir%
26
27 copy %exedir%%exe%.exe %outdir%
28 copy %mapfile% %outdir%
29
30 unset srcfiles
31
32
33 @rem not to be used when using an rsp file.
34 @rem for /f %a in (%outdir%%1) do ( @set srcfiles=%srcfiles% /INC %a)
35
36 PREP /%method% /SF _pei_primitive /OT %outdir%%exe% /OM /EXCALL @%outdir%%rsp% %outdir%%exe%
37
38 rem PREP /%method% /AT /STACK 20 /OT %outdir%%exe% /OM %outdir%%exe%
39 @if errorlevel == 1521 goto label1521
40 @echo ^n
41 @echo You are now ready to start the actual profiling !
42 goto done
43
44
45 @rem Error handling.
46
47 :label1521
48 @echo ////////////////////////////////////////////////////////////////////////
49 @echo ERROR: You have to include some modules (obj) which contains the functions
50 @echo to be profiled. When adding obj files to the list do not use the (0-0)
51 @echo as for line coverage.
52 @echo ////////////////////////////////////////////////////////////////////////
53 @goto done
54
55 :labelusage
56 @echo ^n
57 @echo usage: setup_function_timing file_list.lst path_ext ps_name
58 @echo where:
59 @echo ^n
60 @echo -file_list.lst : text file containing list of files to be profiled.
61 @echo -path_ext : the relative directory path to the entity test files (umts base: \g23m\condat\ms\src\, gprs base :\g23m\condat\ms\).
62 @echo -ps_name : the name of the protocol stack (e.g. umts, gprs, gprs_wap, gprs_bt, teststack).
63 @echo ^n
64 @echo Examples: setup_function_timing.bat sndcp.lst doc\test\ gprs
65 @echo setup_function_timing.bat sndcp.lst sndcp\test_usm\ umts
66 @echo setup_function_timing.bat xx_tdc.lst xx_tdc\ teststack
67 @echo ^n
68 @echo For more information on how to perform the profiling please refer to the user guide: \gpf\doc\test_coverage\8434_521_test_coverage_user_guide.doc
69 @echo ^n
70 @goto done
71
72 :done