Changeset 586 for pjproject/trunk
- Timestamp:
- Jul 5, 2006 8:45:55 PM (18 years ago)
- Location:
- pjproject/trunk/pjsip-apps
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/build/Footprint.mak
r585 r586 50 50 rm -f $(EXE) 51 51 52 print_name: 53 @echo $(MACHINE_NAME) $(OS_NAME) $(CC_NAME) `$(CC_NAME) -dumpversion` -
pjproject/trunk/pjsip-apps/build/get-footprint.py
r585 r586 12 12 compile_flags1 = [ 13 13 # Base 14 ['BASE', 'Minimum PJLIB only'], 14 ['BASE', 'Empty application size'], 15 ['', 'Subtotal: Empty application size'], 16 17 ['HAS_PJLIB', 'Minimum PJLIB only'], 15 18 16 19 # Subtotal … … 27 30 compile_flags = [ 28 31 # Base 29 ['BASE', 'PJLIB (pool, data structures, hash tables, ioqueue, timer heap)'], 32 ['BASE', 'Empty application size'], 33 ['', 'Subtotal: empty application size on this platform'], 34 35 ['HAS_PJLIB', 'PJLIB (pool, data structures, hash tables, ioqueue, socket, timer heap, etc.)'], 30 36 ['', 'Subtotal: Minimum PJLIB application size (linked with OS libraries)'], 31 37 … … 33 39 ['HAS_PJLIB_STUN', 'PJLIB-UTIL STUN client'], 34 40 ['HAS_PJLIB_GETOPT', 'PJLIB-UTIL getopt() functionality'], 35 ['HAS_PJLIB_XML', 'PJLIB-UTIL XML parsing and API'], 41 ['HAS_PJLIB_SCANNER', 'PJLIB-UTIL text scanner (needed by SIP parser)'], 42 ['HAS_PJLIB_XML', 'PJLIB-UTIL tiny XML (parsing and API) (needs text scanner)'], 36 43 37 44 # PJSIP 38 ['HAS_PJSIP_CORE', 'PJSIP Core (endpoint, transport manager, parser, message elements, etc.)'],45 ['HAS_PJSIP_CORE', 'PJSIP Core (endpoint, transport manager, parser, message elements, module mgmt, etc.)'], 39 46 ['HAS_PJSIP_UDP_TRANSPORT', 'PJSIP UDP transport'], 40 47 ['', 'Subtotal: A very minimum SIP application (parsing, UDP transport+STUN, no transaction)'], 41 48 42 49 ['HAS_PJSIP_TCP_TRANSPORT', 'PJSIP TCP transport'], 43 50 ['HAS_PJSIP_INFO', 'PJSIP INFO support (RFC 2976) (no special treatment, thus the zero size)'], … … 153 160 # Get Revision info. 154 161 f = os.popen('svn info | grep Revision') 155 revision = f.readline() 156 162 revision = f.readline().split()[1] 163 164 # Get Machine, OS, and CC name 165 f = os.popen('make -f Footprint.mak print_name') 166 names = f.readline().split() 167 m = names[0] 168 o = names[1] 169 cc = names[2] 170 cc_ver = names[3] 171 157 172 output.write('<HTML><HEAD>\n'); 158 output.write(' <TITLE>PJSIP and PJMEDIA footprint report (' + revision + ')</TITLE>\n')173 output.write(' <TITLE>PJSIP and PJMEDIA footprint report for ' + o + '/' + m + ' (r' + revision + ')</TITLE>\n') 159 174 output.write(' <LINK href="/style/style.css" type="text/css" rel="stylesheet">\n') 160 175 output.write('</HEAD>\n'); 161 176 output.write('<BODY bgcolor="white">\n'); 162 output.write('<!-- 163 164 output.write(' <H1>PJSIP and PJMEDIA footprint report ( ' + revision + ')</H1>\n')177 output.write('<!--#include virtual="/header.html" -->') 178 179 output.write(' <H1>PJSIP and PJMEDIA footprint report (r' + revision + ')</H1>\n') 165 180 output.write('Auto-generated by pjsip-apps/build/get-footprint.py\n') 166 181 output.write('<p>Date: ' + time.asctime() + '<BR>\n') 167 output.write( revision + '</p>\n\n')182 output.write('Revision: r' + revision + '</p>\n\n') 168 183 output.write('<HR>\n') 169 184 output.write('\n') … … 180 195 output.write(l + '<BR>\n') 181 196 output.write('</tt>\n') 197 output.write('<p>Using ' + cc + ' version ' + cc_ver +'</p>\n') 182 198 183 199 # user.mak … … 233 249 234 250 output.write('</TABLE>\n') 235 output.write('<!-- 251 output.write('<!--#include virtual="/footer.html" -->') 236 252 output.write('</BODY>\n') 237 253 output.write('</HTML>\n') -
pjproject/trunk/pjsip-apps/src/samples/footprint.c
r585 r586 33 33 #include <pjlib-util.h> 34 34 #include <pjlib.h> 35 35 #include <stdlib.h> 36 36 37 37 /* All flags: */ 38 38 #if 0 39 #define HAS_PJLIB 40 39 41 #define HAS_PJLIB_STUN 40 42 #define HAS_PJLIB_GETOPT 41 43 #define HAS_PJLIB_XML 44 #define HAS_PJLIB_SCANNER 42 45 43 46 #define HAS_PJSIP_CORE … … 82 85 { 83 86 pj_caching_pool cp; 84 87 88 sprintf(NULL, "%d", 0); 89 rand(); 90 91 #ifdef HAS_PJLIB 85 92 pj_init(); 86 93 pj_caching_pool_init(&cp, NULL, 0); … … 94 101 pj_pool_alloc(NULL, 0); 95 102 pj_timer_heap_create(NULL, 0, NULL); 103 #endif 96 104 97 105 #ifdef HAS_PJLIB_STUN … … 117 125 #endif 118 126 127 #ifdef HAS_PJLIB_SCANNER 128 pj_cis_buf_init(NULL); 129 pj_cis_init(NULL, NULL); 130 pj_cis_dup(NULL, NULL); 131 pj_cis_add_alpha(NULL); 132 pj_cis_add_str(NULL, NULL); 133 134 pj_scan_init(NULL, NULL, 0, 0, NULL); 135 pj_scan_fini(NULL); 136 pj_scan_peek(NULL, NULL, NULL); 137 pj_scan_peek_n(NULL, 0, NULL); 138 pj_scan_peek_until(NULL, NULL, NULL); 139 pj_scan_get(NULL, NULL, NULL); 140 pj_scan_get_unescape(NULL, NULL, NULL); 141 pj_scan_get_quote(NULL, 0, 0, NULL); 142 pj_scan_get_n(NULL, 0, NULL); 143 pj_scan_get_char(NULL); 144 pj_scan_get_until(NULL, NULL, NULL); 145 pj_scan_strcmp(NULL, NULL, 0); 146 pj_scan_stricmp(NULL, NULL, 0); 147 pj_scan_stricmp_alnum(NULL, NULL, 0); 148 pj_scan_get_newline(NULL); 149 pj_scan_restore_state(NULL, NULL); 150 #endif 151 119 152 #ifdef HAS_PJSIP_CORE 120 153 pjsip_endpt_create(NULL, NULL, NULL);
Note: See TracChangeset
for help on using the changeset viewer.