Ignore:
Timestamp:
05/17/17 11:02:34 (7 years ago)
Author:
ymipsl
Message:
  • Add new timer for better profiling. The full timer output will be provided only for info_level=100
  • Add new file attribute : convention_str (string) : this string will overide the default value wrote in the file (CF-1.6 or UGRID)

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/io/onetcdf4_impl.hpp

    r1050 r1135  
    44#include "onetcdf4.hpp" 
    55#include "netCdfInterface.hpp" 
     6#include "timer.hpp" 
    67 
    78namespace xios 
     
    2324    CNetCdfInterface::varParAccess(grpid, varid, NC_INDEPENDENT); 
    2425 
     26    CTimer::get("Files : get data infos").resume(); 
    2527    this->getWriteDataInfos 
    2628    (name, record, array_size,  sstart, scount, start, count); 
     29    CTimer::get("Files : get data infos").suspend(); 
     30 
    2731    if (data.numElements() != array_size) 
    2832    { 
     
    5256    CNetCdfInterface::varParAccess(grpid, varid, NC_INDEPENDENT); 
    5357 
    54     this->getWriteDataInfos 
    55     (name, record, array_size,  sstart, scount, start, count); 
     58    CTimer::get("CONetCDF4::writeData getWriteDataInfos").resume(); 
     59    this->getWriteDataInfos(name, record, array_size,  sstart, scount, start, count); 
     60    CTimer::get("CONetCDF4::writeData getWriteDataInfos").suspend(); 
     61  
    5662    if (data.numElements()*stringArrayLen != array_size) 
    5763    { 
     
    7076      PtrArrayStr[it->size()]='\0' ; 
    7177    } 
     78    CTimer::get("CONetCDF4::writeData writeData_").resume(); 
    7279    this->writeData_(grpid, varid, sstart, scount, ArrayStr); 
     80    CTimer::get("CONetCDF4::writeData writeData_").suspend(); 
    7381    delete [] ArrayStr ; 
    7482  } 
Note: See TracChangeset for help on using the changeset viewer.