Changeset 257 for pjproject


Ignore:
Timestamp:
Mar 1, 2006 8:47:39 PM (19 years ago)
Author:
bennylp
Message:

Trying to find out why CPU is idle while it should be working hard!!

Location:
pjproject/trunk/pjsip-apps
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/build

    • Property svn:ignore
      •  

        old new  
        11*.ncb 
        22*.opt 
         3*.plg 
        34.* 
  • pjproject/trunk/pjsip-apps/build/pjsip_perf.dsp

    r254 r257  
    7575LINK32=link.exe 
    7676# 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: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 /profile /debug /machine:I386 /out:"..\bin\pjsip-perf-i386-win32-vc6d.exe" 
    7878 
    7979!ENDIF  
  • pjproject/trunk/pjsip-apps/src/pjsip-perf/main.c

    r254 r257  
    367367        elapsed = sess_elapsed = batch->end_time; 
    368368 
     369        /* Batch time. */ 
    369370        PJ_TIME_VAL_SUB(elapsed, batch->start_time); 
    370         PJ_TIME_VAL_SUB(sess_elapsed, settings.session->start_time); 
    371371        msec = PJ_TIME_VAL_MSEC(elapsed); 
    372372        if (msec == 0) msec = 1; 
    373373 
    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", 
    375382                             (sess_elapsed.sec / 3600), 
    376383                             (sess_elapsed.sec % 3600) / 60, 
     
    378385                             batch->rate, 
    379386                             elapsed.sec, elapsed.msec, 
    380                              batch->rate * 1000 / msec)); 
     387                             batch->rate * 1000 / msec, 
     388                             batch->spawned_time.sec, 
     389                             batch->spawned_time.msec)); 
    381390 
    382391        if (!settings.session->stopping) { 
     
    408417    pj_status_t status = PJ_SUCCESS; 
    409418    pjsip_cred_info cred_info[1]; 
    410     pj_time_val now, spawn_time, sess_time; 
    411419 
    412420    unsigned i; 
     
    424432    batch->success = 0; 
    425433    batch->failed = 0; 
     434    pj_gettimeofday(&batch->start_time); 
    426435 
    427436    pj_list_push_back(&sess->active_list, batch); 
     
    447456    } 
    448457 
    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); 
    453459 
    454460    sess->total_created += batch->started; 
  • pjproject/trunk/pjsip-apps/src/pjsip-perf/pjsip_perf.h

    r254 r257  
    4141    unsigned     failed; 
    4242    pj_time_val  start_time; 
     43    pj_time_val  spawned_time; 
    4344    pj_time_val  end_time; 
    4445}; 
Note: See TracChangeset for help on using the changeset viewer.