Ignore:
Timestamp:
05/21/12 17:57:22 (10 years ago)
Author:
ymipsl
Message:
  • Supress lot of shared_ptr
  • instrument code for vampir-trace and timer diagnostic

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/interface/c_attr/icgridgroup_attr.cpp

    r345 r347  
    1010#include "group_template_impl.hpp" 
    1111#include "icutil.hpp" 
     12#include "timer.hpp" 
    1213 
    1314extern "C" 
     
    1920    std::string axis_ref_str; 
    2021    if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; 
     22     CTimer::get("XIOS").resume(); 
    2123    gridgroup_hdl->axis_ref.setValue(axis_ref_str); 
    2224    gridgroup_hdl->sendAttributToServer(gridgroup_hdl->axis_ref); 
     25     CTimer::get("XIOS").suspend(); 
    2326  } 
    2427   
    2528  void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size) 
    2629  { 
     30     CTimer::get("XIOS").resume(); 
    2731    if(!string_copy(gridgroup_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) 
    2832      ERROR("void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); 
     33     CTimer::get("XIOS").suspend(); 
    2934  } 
    3035   
     
    3439    std::string description_str; 
    3540    if(!cstr2string(description, description_size, description_str)) return; 
     41     CTimer::get("XIOS").resume(); 
    3642    gridgroup_hdl->description.setValue(description_str); 
    3743    gridgroup_hdl->sendAttributToServer(gridgroup_hdl->description); 
     44     CTimer::get("XIOS").suspend(); 
    3845  } 
    3946   
    4047  void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size) 
    4148  { 
     49     CTimer::get("XIOS").resume(); 
    4250    if(!string_copy(gridgroup_hdl->description.getValue(),description , description_size)) 
    4351      ERROR("void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size)", <<"Input string is to short"); 
     52     CTimer::get("XIOS").suspend(); 
    4453  } 
    4554   
     
    4958    std::string domain_ref_str; 
    5059    if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; 
     60     CTimer::get("XIOS").resume(); 
    5161    gridgroup_hdl->domain_ref.setValue(domain_ref_str); 
    5262    gridgroup_hdl->sendAttributToServer(gridgroup_hdl->domain_ref); 
     63     CTimer::get("XIOS").suspend(); 
    5364  } 
    5465   
    5566  void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size) 
    5667  { 
     68     CTimer::get("XIOS").resume(); 
    5769    if(!string_copy(gridgroup_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) 
    5870      ERROR("void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); 
     71     CTimer::get("XIOS").suspend(); 
    5972  } 
    6073   
     
    6477    std::string group_ref_str; 
    6578    if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; 
     79     CTimer::get("XIOS").resume(); 
    6680    gridgroup_hdl->group_ref.setValue(group_ref_str); 
    6781    gridgroup_hdl->sendAttributToServer(gridgroup_hdl->group_ref); 
     82     CTimer::get("XIOS").suspend(); 
    6883  } 
    6984   
    7085  void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size) 
    7186  { 
     87     CTimer::get("XIOS").resume(); 
    7288    if(!string_copy(gridgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) 
    7389      ERROR("void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); 
     90     CTimer::get("XIOS").suspend(); 
    7491  } 
    7592   
     
    7996    std::string name_str; 
    8097    if(!cstr2string(name, name_size, name_str)) return; 
     98     CTimer::get("XIOS").resume(); 
    8199    gridgroup_hdl->name.setValue(name_str); 
    82100    gridgroup_hdl->sendAttributToServer(gridgroup_hdl->name); 
     101     CTimer::get("XIOS").suspend(); 
    83102  } 
    84103   
    85104  void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size) 
    86105  { 
     106     CTimer::get("XIOS").resume(); 
    87107    if(!string_copy(gridgroup_hdl->name.getValue(),name , name_size)) 
    88108      ERROR("void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size)", <<"Input string is to short"); 
     109     CTimer::get("XIOS").suspend(); 
    89110  } 
    90111   
Note: See TracChangeset for help on using the changeset viewer.