Ignore:
Timestamp:
05/21/12 17:57:22 (12 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/icfilegroup_attr.cpp

    r345 r347  
    1010#include "group_template_impl.hpp" 
    1111#include "icutil.hpp" 
     12#include "timer.hpp" 
    1213 
    1314extern "C" 
     
    1920    std::string description_str; 
    2021    if(!cstr2string(description, description_size, description_str)) return; 
     22     CTimer::get("XIOS").resume(); 
    2123    filegroup_hdl->description.setValue(description_str); 
    2224    filegroup_hdl->sendAttributToServer(filegroup_hdl->description); 
     25     CTimer::get("XIOS").suspend(); 
    2326  } 
    2427   
    2528  void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size) 
    2629  { 
     30     CTimer::get("XIOS").resume(); 
    2731    if(!string_copy(filegroup_hdl->description.getValue(),description , description_size)) 
    2832      ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", <<"Input string is to short"); 
     33     CTimer::get("XIOS").suspend(); 
    2934  } 
    3035   
     
    3237  void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled) 
    3338  { 
     39     CTimer::get("XIOS").resume(); 
    3440    filegroup_hdl->enabled.setValue(enabled); 
    3541    filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled); 
     42     CTimer::get("XIOS").suspend(); 
    3643  } 
    3744   
     
    4653    std::string group_ref_str; 
    4754    if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; 
     55     CTimer::get("XIOS").resume(); 
    4856    filegroup_hdl->group_ref.setValue(group_ref_str); 
    4957    filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref); 
     58     CTimer::get("XIOS").suspend(); 
    5059  } 
    5160   
    5261  void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size) 
    5362  { 
     63     CTimer::get("XIOS").resume(); 
    5464    if(!string_copy(filegroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) 
    5565      ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); 
     66     CTimer::get("XIOS").suspend(); 
    5667  } 
    5768   
     
    6172    std::string name_str; 
    6273    if(!cstr2string(name, name_size, name_str)) return; 
     74     CTimer::get("XIOS").resume(); 
    6375    filegroup_hdl->name.setValue(name_str); 
    6476    filegroup_hdl->sendAttributToServer(filegroup_hdl->name); 
     77     CTimer::get("XIOS").suspend(); 
    6578  } 
    6679   
    6780  void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size) 
    6881  { 
     82     CTimer::get("XIOS").resume(); 
    6983    if(!string_copy(filegroup_hdl->name.getValue(),name , name_size)) 
    7084      ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", <<"Input string is to short"); 
     85     CTimer::get("XIOS").suspend(); 
    7186  } 
    7287   
     
    7691    std::string name_suffix_str; 
    7792    if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; 
     93     CTimer::get("XIOS").resume(); 
    7894    filegroup_hdl->name_suffix.setValue(name_suffix_str); 
    7995    filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix); 
     96     CTimer::get("XIOS").suspend(); 
    8097  } 
    8198   
    8299  void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size) 
    83100  { 
     101     CTimer::get("XIOS").resume(); 
    84102    if(!string_copy(filegroup_hdl->name_suffix.getValue(),name_suffix , name_suffix_size)) 
    85103      ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short"); 
     104     CTimer::get("XIOS").suspend(); 
    86105  } 
    87106   
     
    91110    std::string output_freq_str; 
    92111    if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return; 
     112     CTimer::get("XIOS").resume(); 
    93113    filegroup_hdl->output_freq.setValue(output_freq_str); 
    94114    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq); 
     115     CTimer::get("XIOS").suspend(); 
    95116  } 
    96117   
    97118  void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size) 
    98119  { 
     120     CTimer::get("XIOS").resume(); 
    99121    if(!string_copy(filegroup_hdl->output_freq.getValue(),output_freq , output_freq_size)) 
    100122      ERROR("void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short"); 
     123     CTimer::get("XIOS").suspend(); 
    101124  } 
    102125   
     
    104127  void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level) 
    105128  { 
     129     CTimer::get("XIOS").resume(); 
    106130    filegroup_hdl->output_level.setValue(output_level); 
    107131    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level); 
     132     CTimer::get("XIOS").suspend(); 
    108133  } 
    109134   
     
    118143    std::string par_access_str; 
    119144    if(!cstr2string(par_access, par_access_size, par_access_str)) return; 
     145     CTimer::get("XIOS").resume(); 
    120146    filegroup_hdl->par_access.setValue(par_access_str); 
    121147    filegroup_hdl->sendAttributToServer(filegroup_hdl->par_access); 
     148     CTimer::get("XIOS").suspend(); 
    122149  } 
    123150   
    124151  void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size) 
    125152  { 
     153     CTimer::get("XIOS").resume(); 
    126154    if(!string_copy(filegroup_hdl->par_access.getValue(),par_access , par_access_size)) 
    127155      ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); 
     156     CTimer::get("XIOS").suspend(); 
    128157  } 
    129158   
     
    133162    std::string split_freq_str; 
    134163    if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; 
     164     CTimer::get("XIOS").resume(); 
    135165    filegroup_hdl->split_freq.setValue(split_freq_str); 
    136166    filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq); 
     167     CTimer::get("XIOS").suspend(); 
    137168  } 
    138169   
    139170  void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size) 
    140171  { 
     172     CTimer::get("XIOS").resume(); 
    141173    if(!string_copy(filegroup_hdl->split_freq.getValue(),split_freq , split_freq_size)) 
    142174      ERROR("void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); 
     175     CTimer::get("XIOS").suspend(); 
    143176  } 
    144177   
     
    148181    std::string sync_freq_str; 
    149182    if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; 
     183     CTimer::get("XIOS").resume(); 
    150184    filegroup_hdl->sync_freq.setValue(sync_freq_str); 
    151185    filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq); 
     186     CTimer::get("XIOS").suspend(); 
    152187  } 
    153188   
    154189  void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size) 
    155190  { 
     191     CTimer::get("XIOS").resume(); 
    156192    if(!string_copy(filegroup_hdl->sync_freq.getValue(),sync_freq , sync_freq_size)) 
    157193      ERROR("void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); 
     194     CTimer::get("XIOS").suspend(); 
    158195  } 
    159196   
     
    163200    std::string type_str; 
    164201    if(!cstr2string(type, type_size, type_str)) return; 
     202     CTimer::get("XIOS").resume(); 
    165203    filegroup_hdl->type.setValue(type_str); 
    166204    filegroup_hdl->sendAttributToServer(filegroup_hdl->type); 
     205     CTimer::get("XIOS").suspend(); 
    167206  } 
    168207   
    169208  void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size) 
    170209  { 
     210     CTimer::get("XIOS").resume(); 
    171211    if(!string_copy(filegroup_hdl->type.getValue(),type , type_size)) 
    172212      ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", <<"Input string is to short"); 
     213     CTimer::get("XIOS").suspend(); 
    173214  } 
    174215   
Note: See TracChangeset for help on using the changeset viewer.