IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37406 for trunk/ppImage/src


Ignore:
Timestamp:
Sep 19, 2014, 4:35:41 PM (12 years ago)
Author:
eugene
Message:

add some commented-out timing messages

Location:
trunk/ppImage/src
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageAddNoise.c

    r31155 r37406  
    1818    return true;
    1919  }
     20
     21  // psTimerStart("add.noise");
    2022
    2123  // grizy variances to add to turn MD exposure -> 3pi, calculated from the DRM
     
    9698  psFree(stats);
    9799 
     100  // psLogMsg ("ppImage", 5, "add noise: %f sec\n", psTimerMark ("add.noise"));
     101
    98102  return true;
    99103}
  • trunk/ppImage/src/ppImageAuxiliaryMask.c

    r36169 r37406  
    6767        return true;
    6868    }
     69
     70    // psTimerStart("aux.mask");
    6971
    7072    bool status;
     
    208210    }
    209211
     212    // psLogMsg ("ppImage", 5, "auxiliary mask: %f sec\n", psTimerMark ("aux.mask"));
     213
    210214    return true;
    211215}
  • trunk/ppImage/src/ppImageCheckCTE.c

    r24117 r37406  
    1717        return true;
    1818    }
     19
     20    // psTimerStart("check.cte");
    1921
    2022    // add recipe options supplied on command line
     
    106108    psFree (statsDefaults);
    107109
     110    // psLogMsg ("ppImage", 5, "check CTE: %f sec\n", psTimerMark ("check.cte"));
     111
    108112    return true;
    109113}
  • trunk/ppImage/src/ppImageCheckNoise.c

    r33667 r37406  
    1717        return true;
    1818    }
     19
     20    // psTimerStart("check.noise");
    1921
    2022    // add recipe options supplied on command line
     
    124126    psFree (statsDefaults);
    125127
     128    // psLogMsg ("ppImage", 5, "check noise: %f sec\n", psTimerMark ("check.noise"));
     129
    126130    return true;
    127131}
  • trunk/ppImage/src/ppImageDetrendFringe.c

    r26895 r37406  
    327327    pmCell *cell = NULL;
    328328
     329    // psTimerStart("apply.fringe");
     330
    329331    assert (options->doFringe); // do not call if not needed
    330332    assert (inputView->chip != -1);
     
    386388    }
    387389
     390    // psLogMsg ("ppImage", 5, "apply fringe: %f sec\n", psTimerMark ("apply.fringe"));
     391
    388392    psFree (view);
    389393    return true;
  • trunk/ppImage/src/ppImageDetrendPattern.c

    r33243 r37406  
    3535    // chip.
    3636
     37    // psTimerStart("apply.pattern");
    3738    if (options->doPatternRow) {
     39
    3840        bool status;
    3941        pmHDU *hdu = pmHDUFromChip(chip);
     
    193195
    194196 pattern_done:
     197
     198    // psLogMsg ("ppImage", 5, "apply pattern: %f sec\n", psTimerMark ("apply.pattern"));
     199
    195200    return(true);
    196201}
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r35917 r37406  
    77bool ppImageDetrendReadout(pmConfig *config, ppImageOptions *options, pmFPAview *view)
    88{
     9  // psTimerStart("detrend.readout");
     10
    911    // construct a view for the detrend images (which have only one readout)
    1012    pmFPAview *detview = pmFPAviewAlloc(0);
     
    3537      }
    3638    }
     39    // psLogMsg ("ppImage", 6, "check gain: %f sec\n", psTimerMark ("detrend.readout"));
    3740
    3841    // Check to see if we're in a chip that contains video
     
    5659    }
    5760    done_video_check:
     61    // psLogMsg ("ppImage", 6, "check video: %f sec\n", psTimerMark ("detrend.readout"));
    5862
    5963    // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine.
     
    6670          return false;
    6771        }
     72        // psLogMsg ("ppImage", 6, "generate mask: %f sec\n", psTimerMark ("detrend.readout"));
    6873    }
    6974    // apply the externally supplied mask to the input->mask pixels
     
    7782      }
    7883      pmMaskBadPixels(input, mask, options->maskValue);
     84      // psLogMsg ("ppImage", 6, "apply mask: %f sec\n", psTimerMark ("detrend.readout"));
    7985    }
    8086
     
    8389        // extern bool ppImageBurntoolApply(pmConfig *, ppImageOptions *, pmFPAview *, pmReadout *);
    8490        ppImageBurntoolApply(config, options, view, input);
     91        // psLogMsg ("ppImage", 6, "apply burntool: %f sec\n", psTimerMark ("detrend.readout"));
    8592    }
    8693   
     
    93100            ppImageBurntoolMask(config,options,view,input);
    94101        }
     102        // psLogMsg ("ppImage", 6, "apply burntool mask: %f sec\n", psTimerMark ("detrend.readout"));
    95103    }
    96104
     
    102110        return false;
    103111      }
     112      // psLogMsg ("ppImage", 6, "subtract overscan: %f sec\n", psTimerMark ("detrend.readout"));
    104113    }
    105114
     
    111120        return(false);
    112121      }
     122      // psLogMsg ("ppImage", 6, "nonlinear correction: %f sec\n", psTimerMark ("detrend.readout"));
    113123    }
    114124
     
    148158            return false;
    149159        }
     160        // psLogMsg ("ppImage", 6, "apply bias: %f sec\n", psTimerMark ("detrend.readout"));
    150161    }
    151162   
     
    218229        }
    219230        psFree (noiseImage);
     231        // psLogMsg ("ppImage", 6, "generate variance: %f sec\n", psTimerMark ("detrend.readout"));
    220232    }
    221233
     
    226238            return false;
    227239        }
     240        // psLogMsg ("ppImage", 6, "apply dark: %f sec\n", psTimerMark ("detrend.readout"));
    228241    }
    229242
     
    235248            return false;
    236249        }
     250        // psLogMsg ("ppImage", 6, "mask remnance: %f sec\n", psTimerMark ("detrend.readout"));
    237251    }
    238252
     
    244258            return false;
    245259        }
     260        // psLogMsg ("ppImage", 6, "shutter correction: %f sec\n", psTimerMark ("detrend.readout"));
    246261    }
    247262
     
    253268            return false;
    254269        }
     270        // psLogMsg ("ppImage", 6, "apply flat: %f sec\n", psTimerMark ("detrend.readout"));
    255271    }
    256272
     
    276292
    277293        psBinaryOp(input->image, input->image, "*", psScalarAlloc(norm, PS_TYPE_F32));
     294        // psLogMsg ("ppImage", 6, "renormalize: %f sec\n", psTimerMark ("detrend.readout"));
    278295    }
    279296
     
    324341
    325342        psFree (classID);
     343
     344        // psLogMsg ("ppImage", 6, "renormalize by class: %f sec\n", psTimerMark ("detrend.readout"));
    326345    }
    327346# endif
     
    333352            return false;
    334353        }
     354        // psLogMsg ("ppImage", 6, "measure fringe: %f sec\n", psTimerMark ("detrend.readout"));
    335355    }
    336356
    337357    ppImageMemoryDump("detrend");
    338358
     359    // psLogMsg ("ppImage", 5, "detrend readout: %f sec\n", psTimerMark ("detrend.readout"));
    339360    psFree(detview);
    340361    return true;
  • trunk/ppImage/src/ppImageMosaic.c

    r28292 r37406  
    99{
    1010    bool status;                        // Status of MD lookup
     11
     12    // psTimerStart("mosaic.chip");
    1113
    1214    pmFPAfile *in = psMetadataLookupPtr(&status, config->files, inFile); // Input file
     
    6365    }
    6466
     67    // psLogMsg ("ppImage", 5, "mosaic chip: %f sec\n", psTimerMark ("mosaic.chip"));
     68
    6569    return status;
    6670}
  • trunk/ppImage/src/ppImageParityFlip.c

    r25875 r37406  
    1919
    2020    if (!options->applyParity) return true;
     21
     22    // psTimerStart("parity.flip");
    2123
    2224    // find the currently selected readout
     
    152154        }
    153155    }
     156    // psLogMsg ("ppImage", 5, "parity flip: %f sec\n", psTimerMark ("parity.flip"));
    154157
    155158    FIX_CONCEPT(cell->concepts, "CELL.XPARITY", S32, xParityTarget);
  • trunk/ppImage/src/ppImagePixelStats.c

    r19928 r37406  
    1010{
    1111    bool mdok;              // Status of MD lookup
     12
     13    // psTimerStart("pixel.stats");
    1214
    1315    // loop over the cells/readouts for this chip
     
    8183    }
    8284
     85    // psLogMsg ("ppImage", 5, "measure pixel stats: %f sec\n", psTimerMark ("pixel.stats"));
     86
    8387    psFree (view);
    8488    return true;
  • trunk/ppImage/src/ppImageRebinReadout.c

    r20439 r37406  
    1212    pmFPAfile *outFile = psMetadataLookupPtr(NULL, config->files, outName);
    1313    if (outFile == NULL) return false;
     14
     15    // psTimerStart("rebin.chip");
    1416
    1517    // XXX double check that chip != -1?
     
    4042    }
    4143
     44    // psLogMsg ("ppImage", 5, "rebin chip for %s: %f sec\n", outName, psTimerMark ("rebin.chip"));
     45
    4246    return true;
    4347}
  • trunk/ppImage/src/ppImageSetMaskBits.c

    r25829 r37406  
    1111        return false;
    1212    }
     13
     14    // psTimerStart("set.mask.bits");
    1315
    1416    // at this point we know we have valid values for required entries SAT, BAD, FLAT, BLANK:
     
    5759                           options->markValue);
    5860
     61    // psLogMsg ("ppImage", 5, "set mask bits: %f sec\n", psTimerMark ("set.mask.bits"));
     62
    5963    return true;
    6064}
Note: See TracChangeset for help on using the changeset viewer.