Changeset 257
- Timestamp:
- Mar 1, 2006 8:47:39 PM (19 years ago)
- Location:
- pjproject/trunk/pjsip-apps
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/build
- Property svn:ignore
-
old new 1 1 *.ncb 2 2 *.opt 3 *.plg 3 4 .*
-
- Property svn:ignore
-
pjproject/trunk/pjsip-apps/build/pjsip_perf.dsp
r254 r257 75 75 LINK32=link.exe 76 76 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept 77 # ADD LINK32 netapi32.lib mswsock.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console / debug /machine:I386 /out:"..\bin\pjsip-perf-i386-win32-vc6d.exe" /pdbtype:sept77 # ADD LINK32 netapi32.lib mswsock.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /profile /debug /machine:I386 /out:"..\bin\pjsip-perf-i386-win32-vc6d.exe" 78 78 79 79 !ENDIF -
pjproject/trunk/pjsip-apps/src/pjsip-perf/main.c
r254 r257 367 367 elapsed = sess_elapsed = batch->end_time; 368 368 369 /* Batch time. */ 369 370 PJ_TIME_VAL_SUB(elapsed, batch->start_time); 370 PJ_TIME_VAL_SUB(sess_elapsed, settings.session->start_time);371 371 msec = PJ_TIME_VAL_MSEC(elapsed); 372 372 if (msec == 0) msec = 1; 373 373 374 PJ_LOG(3,(THIS_FILE, "%02d:%02d:%02d: %d tasks in %d.%ds (%d tasks/sec)", 374 /* Session time */ 375 PJ_TIME_VAL_SUB(sess_elapsed, settings.session->start_time); 376 377 /* Spawn time */ 378 PJ_TIME_VAL_SUB(batch->spawned_time, batch->start_time); 379 380 PJ_LOG(3,(THIS_FILE, "%02d:%02d:%02d: %d tasks in %d.%ds (%d tasks/sec), " 381 "spawn=time=%d.%d", 375 382 (sess_elapsed.sec / 3600), 376 383 (sess_elapsed.sec % 3600) / 60, … … 378 385 batch->rate, 379 386 elapsed.sec, elapsed.msec, 380 batch->rate * 1000 / msec)); 387 batch->rate * 1000 / msec, 388 batch->spawned_time.sec, 389 batch->spawned_time.msec)); 381 390 382 391 if (!settings.session->stopping) { … … 408 417 pj_status_t status = PJ_SUCCESS; 409 418 pjsip_cred_info cred_info[1]; 410 pj_time_val now, spawn_time, sess_time;411 419 412 420 unsigned i; … … 424 432 batch->success = 0; 425 433 batch->failed = 0; 434 pj_gettimeofday(&batch->start_time); 426 435 427 436 pj_list_push_back(&sess->active_list, batch); … … 447 456 } 448 457 449 pj_gettimeofday(&now); 450 spawn_time = sess_time = now; 451 PJ_TIME_VAL_SUB(spawn_time, batch->start_time); 452 PJ_TIME_VAL_SUB(sess_time, sess->start_time); 458 pj_gettimeofday(&batch->spawned_time); 453 459 454 460 sess->total_created += batch->started; -
pjproject/trunk/pjsip-apps/src/pjsip-perf/pjsip_perf.h
r254 r257 41 41 unsigned failed; 42 42 pj_time_val start_time; 43 pj_time_val spawned_time; 43 44 pj_time_val end_time; 44 45 };
Note: See TracChangeset
for help on using the changeset viewer.