Changeset 1412 for XIOS/dev


Ignore:
Timestamp:
01/25/18 14:58:58 (6 years ago)
Author:
ymipsl
Message:

More timer instrumentation...

YM

Location:
XIOS/dev/XIOS_DEV_CMIP6/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/filter/spatial_transform_filter.cpp

    r1275 r1412  
    33#include "context.hpp" 
    44#include "context_client.hpp" 
     5#include "timer.hpp" 
    56 
    67namespace xios 
     
    188189  void CSpatialTransformFilterEngine::apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest) 
    189190  { 
     191    CTimer::get("CSpatialTransformFilterEngine::apply").suspend();  ; 
    190192    CContextClient* client = CContext::getCurrent()->client; 
    191193 
     
    302304 
    303305    dataDest = dataCurrentDest; 
     306 
     307    CTimer::get("CSpatialTransformFilterEngine::apply").resume() ; 
    304308  } 
    305309} // namespace xios 
  • XIOS/dev/XIOS_DEV_CMIP6/src/transformation/axis_algorithm_interpolate.cpp

    r1324 r1412  
    1717#include "grid_transformation_factory_impl.hpp" 
    1818#include "distribution_client.hpp" 
     19#include "timer.hpp" 
    1920 
    2021namespace xios { 
     
    6364void CAxisAlgorithmInterpolate::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 
    6465{ 
     66  CTimer::get("CAxisAlgorithmInterpolate::computeIndexSourceMapping_").resume() ; 
    6567  CContext* context = CContext::getCurrent(); 
    6668  CContextClient* client=context->client; 
     
    8486    computeInterpolantPoint(valueSrc, indexVec, idx); 
    8587  } 
     88  CTimer::get("CAxisAlgorithmInterpolate::computeIndexSourceMapping_").suspend() ; 
    8689} 
    8790 
  • XIOS/dev/XIOS_DEV_CMIP6/src/transformation/grid_transformation.cpp

    r1399 r1412  
    386386        (CGenericAlgorithmTransformation::ELEMENT_MODIFICATION_WITH_DATA == algo->type()))) // Only registered transformation can be executed 
    387387    { 
     388      CTimer::get("computeIndexSourceMapping").resume() ; 
    388389      algo->computeIndexSourceMapping(dataAuxInputs); 
    389  
     390      CTimer::get("computeIndexSourceMapping").suspend() ; 
     391       
    390392      // ComputeTransformation of global index of each element 
    391393      int elementPosition = it->first; 
Note: See TracChangeset for help on using the changeset viewer.