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

    r346 r347  
    66#include "context.hpp" 
    77#include "context_client.hpp" 
    8 #include "tree_manager.hpp" 
    98#include "oasis_cinterface.hpp" 
    109#include <mpi.h> 
     10#include "timer.hpp" 
    1111 
    1212namespace xios 
     
    130130    { 
    131131      CContext::setCurrent(id) ; 
    132       shared_ptr<CContext> context=CContext::create(id) ; 
     132      CContext* context=CContext::create(id) ; 
    133133         
    134134      if (!CXios::isServer) 
     
    193193      } 
    194194      info(20) << "Client side context is finalized"<<endl ; 
     195      report(0) <<" Performance report : total time spent for XIOS : "<< CTimer::get("XIOS").getCumulatedTime()<<" s"<<endl ;  
     196      report(0)<< " Performance report : time spent for waiting free buffer : "<< CTimer::get("Blocking time").getCumulatedTime()<<" s"<<endl ; 
     197      report(0)<< " Performance report : Ratio : "<< CTimer::get("Blocking time").getCumulatedTime()/CTimer::get("XIOS").getCumulatedTime()*100.<<" %"<<endl ; 
     198      report(0)<< " Performance report : This ratio must be close to zero. Otherwise it may be usefull to increase buffer size or numbers of server"<<endl ; 
    195199    } 
    196200} 
Note: See TracChangeset for help on using the changeset viewer.