JANA2
C++ framework for multi-threaded data processing
Loading...
Searching...
No Matches
JCallGraphEntryMaker Class Reference

Stack object to handle recording entry to call graph. More...

#include <JCallGraphEntryMaker.h>

Collaboration diagram for JCallGraphEntryMaker:
[legend]

Public Member Functions

 JCallGraphEntryMaker (JCallGraphRecorder &callgraphrecorder, JFactory *factory)
 
 JCallGraphEntryMaker (JCallGraphRecorder &callgraphrecorder, std::string name)
 

Protected Attributes

JCallGraphRecorderm_call_graph
 
JFactorym_factory =nullptr
 

Detailed Description

Stack object to handle recording entry to call graph.

This is used to add a new entry to a JCallGraph, recording the time when it is created and then again when it is deleted. The intent is to use it as a local stack variable so if the call being timed throws an exception, the destructor of this will still get run, guaranteeing the call stack entry is completed.

Objects of this type are used in JEvent::Get and JEventProcessingArrow::execute (and possibly other places).


The documentation for this class was generated from the following file: