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/icaxis.cpp

    r346 r347  
    1313 
    1414#include "icutil.hpp" 
     15#include "timer.hpp" 
    1516 
    1617extern "C" 
     
    2930      std::string id;  
    3031      if (!cstr2string(_id, _id_len, id)) return; 
    31  
    32       *_ret = xios::CAxis::get(id).get(); 
     32      CTimer::get("XIOS").resume() ; 
     33      *_ret = xios::CAxis::get(id); 
     34      CTimer::get("XIOS").suspend() ; 
    3335   } 
    3436    
     
    3739      std::string id;  
    3840      if (!cstr2string(_id, _id_len, id)) return; 
    39  
    40       *_ret = xios::CAxisGroup::get(id).get(); 
    41    } 
     41      CTimer::get("XIOS").resume() ; 
     42      *_ret = xios::CAxisGroup::get(id); 
     43      CTimer::get("XIOS").suspend() ; 
     44    } 
    4245 
    4346   // -------------------- Vérification des identifiants ----------------------- 
     
    4851      if (!cstr2string(_id, _id_len, id)) return; 
    4952 
     53      CTimer::get("XIOS").resume() ; 
    5054      *_ret = xios::CAxis::has(id); 
     55      CTimer::get("XIOS").suspend() ; 
    5156   } 
    5257 
     
    5661      if (!cstr2string(_id, _id_len, id)) return; 
    5762 
     63      CTimer::get("XIOS").resume() ; 
    5864      *_ret = xios::CAxisGroup::has(id); 
     65      CTimer::get("XIOS").suspend() ; 
     66 
    5967   } 
    6068    
Note: See TracChangeset for help on using the changeset viewer.