IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30874 for trunk/ppStack


Ignore:
Timestamp:
Mar 10, 2011, 6:03:50 PM (15 years ago)
Author:
watersc1
Message:

update to ppSub and ppStack to add timers to the stats output

Location:
trunk/ppStack/src
Files:
4 edited

Legend:

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

    r30620 r30874  
    116116
    117117    psTrace("ppStack", 1, "Finished at %f sec\n", psTimerMark("PPSTACK"));
     118    psLogMsg("ppStack", PS_LOG_INFO, "Complete ppStack run: %f sec\n", psTimerMark("PPSTACK"));
    118119    psTimerStop();
    119120
  • trunk/ppStack/src/ppStackCombineFinal.c

    r30620 r30874  
    1010    psAssert(config, "Require configuration");
    1111
     12    psTimerStart("PPSTACK_FINAL");
     13   
    1214    pmReadout *outRO = options->outRO;                                      // Output readout
    1315    pmReadout *expRO = options->expRO;                                      // Exposure readout
     
    111113#endif
    112114
     115    if (options->stats) {
     116      psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_FINAL", 0,
     117                       "Time to make final stack", psTimerMark("PPSTACK_FINAL"));
     118    }
     119   
    113120    return true;
    114121}
  • trunk/ppStack/src/ppStackCombineInitial.c

    r30620 r30874  
    9090    if (options->stats) {
    9191        psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_INITIAL", 0,
    92                          "Time to make final stack", psTimerMark("PPSTACK_INITIAL"));
     92                         "Time to make initial stack", psTimerMark("PPSTACK_INITIAL"));
    9393    }
    9494
  • trunk/ppStack/src/ppStackConvolve.c

    r30620 r30874  
    1616    psAssert(config, "Require configuration");
    1717
     18    psTimerStart("PPSTACK_CONVOLVE");
     19   
    1820    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe
    1921    psAssert(recipe, "We've thrown an error on this before.");
     
    365367    psFree(renorms);
    366368
     369    if (options->stats) {
     370      psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_CONVOLVE", 0,
     371                       "Time to convolve input images", psTimerMark("PPSTACK_CONVOLVE"));
     372    }
     373   
    367374    return true;
    368375}
Note: See TracChangeset for help on using the changeset viewer.