IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21258


Ignore:
Timestamp:
Feb 1, 2009, 11:57:23 AM (17 years ago)
Author:
eugene
Message:

added a few coarse-grained timer marks

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStack.c

    r20413 r21258  
    1616    psExit exitValue = PS_EXIT_SUCCESS; // Exit value
    1717    psTimerStart(TIMER_NAME);
     18    psTimerStart("PPSTACK_STEPS");
    1819    psLibInit(NULL);
    1920
  • trunk/ppStack/src/ppStackLoop.c

    r21199 r21258  
    249249
    250250    memDump("start");
     251
     252    psLogMsg("ppStack", PS_LOG_INFO, "Stage 0 : Initialization and Configuration : %f sec", psTimerClear("PPSTACK_STEPS"));
    251253
    252254    // Preparation iteration: Load the sources, and get a target PSF model
     
    380382    }
    381383
     384    psLogMsg("ppStack", PS_LOG_INFO, "Stage 1 : Load Sources and Generate Target PSF : %f sec", psTimerClear("PPSTACK_STEPS"));
    382385    memDump("psf");
    383386
     
    509512    psFree(rng);
    510513
     514    psLogMsg("ppStack", PS_LOG_INFO, "Stage 2 : Generate Convolutions and Save : %f sec", psTimerClear("PPSTACK_STEPS"));
     515
    511516    if (numGood == 0) {
    512517        psError(PS_ERR_UNKNOWN, false, "No good images to combine.");
     
    613618#endif
    614619
     620    psLogMsg("ppStack", PS_LOG_INFO, "Stage 3 : Basic Image Rejection  : %f sec", psTimerClear("PPSTACK_STEPS"));
    615621
    616622    // Start threading
     
    762768                         "Time to make initial stack", psTimerMark("PPSTACK_INITIAL"));
    763769    }
     770    psLogMsg("ppStack", PS_LOG_INFO, "Stage 4 : Make Initial Stack : %f sec", psTimerClear("PPSTACK_STEPS"));
    764771    psLogMsg("ppStack", PS_LOG_INFO, "Time to make initial stack: %f sec", psTimerClear("PPSTACK_INITIAL"));
    765772
     
    912919                             "Number of images rejected completely", numRejected);
    913920        }
    914    }
    915 
     921    }
     922
     923    psLogMsg("ppStack", PS_LOG_INFO, "Stage 5 : Pixel Rejection : %f sec", psTimerClear("PPSTACK_STEPS"));
    916924    psTimerStart("PPSTACK_FINAL");
    917925
     
    976984                         "Time to make final stack", psTimerMark("PPSTACK_FINAL"));
    977985    }
     986
     987    psLogMsg("ppStack", PS_LOG_INFO, "Stage 6 : Final Stack : %f sec", psTimerClear("PPSTACK_STEPS"));
    978988    psLogMsg("ppStack", PS_LOG_INFO, "Time to make final stack: %f sec", psTimerClear("PPSTACK_FINAL"));
    979989
     
    10711081    }
    10721082
     1083    psLogMsg("ppStack", PS_LOG_INFO, "Stage 7 : WCS & JPEGS : %f sec", psTimerClear("PPSTACK_STEPS"));
     1084
    10731085    if (psMetadataLookupBool(&mdok, recipe, "RENORM")) {
    10741086        // Statistics for renormalisation
     
    10881100    }
    10891101
     1102    psLogMsg("ppStack", PS_LOG_INFO, "Stage 8 : Photometry Renormalization : %f sec", psTimerClear("PPSTACK_STEPS"));
     1103
    10901104    if (psMetadataLookupBool(&mdok, recipe, "PHOTOMETRY")) {
    10911105        psTrace("ppStack", 1, "Photometering stacked image....\n");
     
    11171131    }
    11181132
     1133    psLogMsg("ppStack", PS_LOG_INFO, "Stage 9 : Photometry Analysis : %f sec", psTimerClear("PPSTACK_STEPS"));
     1134
    11191135    psThreadPoolFinalize();
    11201136
     
    11701186    }
    11711187
     1188    psLogMsg("ppStack", PS_LOG_INFO, "Stage 10 : Final Output : %f sec", psTimerClear("PPSTACK_STEPS"));
     1189
    11721190    memDump("finish");
    11731191
Note: See TracChangeset for help on using the changeset viewer.