IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32744


Ignore:
Timestamp:
Nov 22, 2011, 10:16:39 AM (15 years ago)
Author:
eugene
Message:

add notes counting allocations using psImageSmooth

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceFitPCM.c

    r32347 r32744  
    6767
    6868    psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32);
     69    // NOTE : 4 allocs to here
    6970
    7071    float t1, t2, t3, t4, t5;
    7172    if (TIMING) { t1 = psTimerMark ("pmSourceFitPCM"); }
    7273
     74    // NOTE : 996 allocs in here
    7375    bool fitStatus = pmPCM_MinimizeChisq (myMin, covar, params, source, pcm);
    7476    if (TIMING) { t2 = psTimerMark ("pmSourceFitPCM"); }
  • trunk/psphot/src/psphotExtendedSourceFits.c

    r32348 r32744  
    321321
    322322        // set the fit radius based on the first radial moment (also sets the mask pixels)
    323         psphotSetRadiusMomentsExact(&fitRadius, &windowRadius, readout, source, markVal);
     323        psphotSetRadiusMomentsExact(&fitRadius, &windowRadius, readout, source, markVal); // NOTE : 6 allocs
    324324
    325325        // UPDATE : we have changed the moments calculation.  There is now an iteration within
     
    371371          pmModel *modelFit = NULL;
    372372          if (convolved) {
    373               modelFit = psphotFitPCM (readout, source, fitOptions, modelType, maskVal, markVal, psfSize);
     373              // NOTE : 4 more allocs to here
     374              modelFit = psphotFitPCM (readout, source, fitOptions, modelType, maskVal, markVal, psfSize); // NOTE : 2313 allocs in here
    374375              if (!modelFit) {
    375376                  psTrace ("psphot", 5, "failed to fit psf-conv model for object at %f, %f", source->moments->Mx, source->moments->My);
  • trunk/psphot/src/psphotSourceFits.c

    r32695 r32744  
    531531    if (TIMING) { t1 = psTimerMark ("psphotFitPCM"); }
    532532
     533    // NOTE : 65 allocs to here
    533534    // get the guess for sersic models
    534535    if (modelType == pmModelClassGetType("PS_MODEL_SERSIC")) {
     
    560561
    561562    // psTraceSetLevel("psLib.math.psMinimizeLMChi2", 5);
    562     pmSourceFitPCM (pcm, source, &options, maskVal, markVal, psfSize);
     563    pmSourceFitPCM (pcm, source, &options, maskVal, markVal, psfSize);  // NOTE : 1687 allocs in here
    563564    if (TIMING) { t5 = psTimerMark ("psphotFitPCM"); }
    564565
Note: See TracChangeset for help on using the changeset viewer.