IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31090


Ignore:
Timestamp:
Mar 30, 2011, 9:41:12 AM (15 years ago)
Author:
eugene
Message:

merging changes from trunk

Location:
branches/eam_branches/ipp-20110213/ppStack/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackCleanup.c

    r30620 r31090  
    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
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackCombineFinal.c

    r30802 r31090  
    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        // only add the timer if it has not been set (convolved stack)
     117        // XXX this is weak: we should be distinguishing explicitly between convolved and unconvolved stacks
     118        psMetadataLookupF32 (&status, options->stats, "TIME_FINAL");
     119        if (!status) {
     120          psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_FINAL", PS_META_REPLACE, "Time to make final stack", psTimerMark("PPSTACK_FINAL"));
     121        }
     122    }
     123   
    113124    return true;
    114125}
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackCombineInitial.c

    r30620 r31090  
    8989
    9090    if (options->stats) {
    91         psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_INITIAL", 0,
    92                          "Time to make final stack", psTimerMark("PPSTACK_INITIAL"));
     91        psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_INITIAL", PS_META_REPLACE, "Time to make initial stack", psTimerMark("PPSTACK_INITIAL"));
    9392    }
    9493
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackConvolve.c

    r30811 r31090  
    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.");
     
    424426    psFree(satValues);
    425427
     428    if (options->stats) {
     429      psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_CONVOLVE", PS_META_REPLACE,
     430                       "Time to convolve input images", psTimerMark("PPSTACK_CONVOLVE"));
     431    }
     432   
    426433    return true;
    427434}
  • branches/eam_branches/ipp-20110213/ppStack/src/ppStackPhotometry.c

    r30620 r31090  
    8484            psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0);
    8585        }
    86         psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry", psTimerMark("PPSTACK_PHOT"));
     86        psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", PS_META_REPLACE, "Time to do photometry", psTimerMark("PPSTACK_PHOT"));
    8787    }
    8888
Note: See TracChangeset for help on using the changeset viewer.