CppADCodeGen  HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
CppAD::cg::JobTimer Class Reference
Inheritance diagram for CppAD::cg::JobTimer:
Inheritance graph
Collaboration diagram for CppAD::cg::JobTimer:
Collaboration graph

Public Member Functions

bool isVerbose () const
 
void setVerbose (bool verbose)
 
size_t getMaxLineWidth () const
 
void setMaxLineWidth (size_t width)
 
size_t getJobCount () const
 
void addListener (JobListener &l)
 
bool removeListener (JobListener &l)
 
void startingJob (const std::string &jobName, const JobType &type=JobTypeHolder<>::DEFAULT, const std::string &prefix="")
 
void finishedJob ()
 

Static Public Attributes

static const JobType DEFAULT
 
static const JobType LOOP_DETECTION
 
static const JobType GRAPH
 
static const JobType SOURCE_FOR_MODEL
 
static const JobType SOURCE_GENERATION
 
static const JobType COMPILING_FOR_MODEL
 
static const JobType COMPILING
 
static const JobType COMPILING_DYNAMIC_LIBRARY
 
static const JobType DYNAMIC_MODEL_LIBRARY
 
static const JobType STATIC_MODEL_LIBRARY
 
static const JobType ASSEMBLE_STATIC_LIBRARY
 
static const JobType JIT_MODEL_LIBRARY
 

Protected Attributes

bool _verbose
 

Detailed Description

Utility class used to print elapsed times of jobs

Definition at line 183 of file job_timer.hpp.

Member Function Documentation

◆ getJobCount()

size_t CppAD::cg::JobTimer::getJobCount ( ) const
inline

Provides the number of currently running jobs

Returns
the number of running jobs

Definition at line 248 of file job_timer.hpp.

Referenced by CppAD::cg::AbstractCCompiler< Base >::compileSources().

Member Data Documentation

◆ _verbose

bool CppAD::cg::JobTimer::_verbose
protected

Whether or not to print progress information to the standard output

Definition at line 189 of file job_timer.hpp.


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