Skip to content

Commit 2c7a08b

Browse files
committed
Add IOTrace debug-level messages
1 parent 639c551 commit 2c7a08b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

IOPool/Input/src/RootTree.cc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
#include "RootTree.h"
2-
#include "RootDelayedReader.h"
3-
#include "RootPromptReadDelayedReader.h"
1+
#include "DataFormats/Provenance/interface/BranchType.h"
2+
#include "FWCore/MessageLogger/interface/MessageLogger.h"
43
#include "FWCore/Utilities/interface/EDMException.h"
54
#include "FWCore/Utilities/interface/Exception.h"
6-
#include "DataFormats/Provenance/interface/BranchType.h"
75
#include "IOPool/Common/interface/getWrapperBasePtr.h"
6+
87
#include "InputFile.h"
8+
#include "RootTree.h"
9+
#include "RootDelayedReader.h"
10+
#include "RootPromptReadDelayedReader.h"
11+
912
#include "TTree.h"
1013
#include "TTreeCache.h"
1114
#include "TLeaf.h"
@@ -437,6 +440,8 @@ namespace edm {
437440
}
438441

439442
inline void RootTree::getEntryUsingCache(TBranch* branch, EntryNumber entryNumber, TTreeCache* cache) const {
443+
LogTrace("IOTrace").format(
444+
"RootTree::getEntryUsingCache() begin for branch {} entry {}", branch->GetName(), entryNumber);
440445
try {
441446
auto guard = filePtr_->setCacheReadTemporarily(cache, tree_);
442447
branch->GetEntry(entryNumber);
@@ -457,6 +462,8 @@ namespace edm {
457462
t.addContext(std::string("Reading branch ") + branch->GetName());
458463
throw t;
459464
}
465+
LogTrace("IOTrace").format(
466+
"RootTree::getEntryUsingCache() end for branch {} entry {}", branch->GetName(), entryNumber);
460467
}
461468

462469
bool RootTree::skipEntries(unsigned int& offset) {

Utilities/StorageFactory/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ There is an `edmStorageTracer.py` script for doing some analyses of the traces.
5151
The `StorageTracerProxy` also provides a way to correlate the trace entries with the rest of the framework via [MessageLogger](../../FWCore/MessageService/Readme.md) messages. These messages are issued with the DEBUG severity and `IOTrace` category. There are additional, higher-level messages as part of the `PoolSource`. To see these messages, compile the `Utilities/Storage` and `IOPool/Input` packages with `USER_CXXFLAGS="-DEDM_ML_DEBUG", and customize the MessageLogger configuration along
5252
```py
5353
process.MessageLogger.cerr.threshold = "DEBUG"
54-
process.MessageLogger.debugModules = ["*"]
55-
process.MessageLogger.IOTrace = dict()
5654
```
5755

5856
#### `StorageAddLatencyProxy`

0 commit comments

Comments
 (0)