File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 13
13
#include " XrdCl/XrdClDefaultEnv.hh"
14
14
#include " XrdCl/XrdClFileSystem.hh"
15
15
16
+ // #define CPUTIME_IN_XRD
17
+ #if defined(CPUTIME_IN_XRD)
16
18
#include " FWCore/Utilities/interface/CPUTimer.h"
19
+ #endif
17
20
#include " FWCore/Utilities/interface/EDMException.h"
18
21
#include " FWCore/Utilities/interface/Likely.h"
19
22
#include " FWCore/MessageLogger/interface/MessageLogger.h"
@@ -751,8 +754,10 @@ std::future<IOSize> XrdAdaptor::RequestManager::handle(std::shared_ptr<std::vect
751
754
timespec now;
752
755
GET_CLOCK_MONOTONIC (now);
753
756
757
+ #if defined(CPUTIME_IN_XRD)
754
758
edm::CPUTimer timer;
755
759
timer.start ();
760
+ #endif
756
761
757
762
if (activeSources.size () == 1 ) {
758
763
auto c_ptr = std::make_shared<XrdAdaptor::ClientRequest>(*this , iolist);
@@ -816,8 +821,11 @@ std::future<IOSize> XrdAdaptor::RequestManager::handle(std::shared_ptr<std::vect
816
821
},
817
822
std::move (future1),
818
823
std::move (future2));
824
+ #if defined(CPUTIME_IN_XRD)
819
825
timer.stop ();
820
- // edm::LogVerbatim("XrdAdaptorInternal") << "Total time to create requests " << static_cast<int>(1000*timer.realTime()) << std::endl;
826
+ edm::LogVerbatim (" XrdAdaptorInternal" )
827
+ << " Total time to create requests " << static_cast <int >(1000 * timer.realTime ()) << std::endl;
828
+ #endif
821
829
return task;
822
830
} else if (!req1->empty ()) {
823
831
return future1;
You can’t perform that action at this time.
0 commit comments