Dakota  Version
Explore and Predict with Confidence
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UsageTracker Class Reference

Lightweight class to manage conditionally active Curl-based HTTP tracker via PIMPL. More...

Public Member Functions

 UsageTracker ()
 default construction: no output
 
 UsageTracker (int world_rank)
 standard constructor; will output on rank 0 More...
 
void post_start (ProblemDescDB &problem_db)
 post the start of an analysis and archive start time
 
void post_finish (unsigned runtime=0)
 post the completion of an analysis including elapsed time
 

Private Member Functions

 UsageTracker (const UsageTracker &)
 copy construction is disallowed
 

Private Attributes

std::shared_ptr< TrackerHTTPpTrackerHTTP
 posts usage data to Web server; using shared_ptr due to potentially incomplete type and requirements for checked_delete in debug builds (scoped_ptr would suffice)
 

Detailed Description

Lightweight class to manage conditionally active Curl-based HTTP tracker via PIMPL.

All conditional compilation in managed in the cpp file; all operations are no-op in this wrapper if not enabling tracking...

Constructor & Destructor Documentation

◆ UsageTracker()

UsageTracker ( int  world_rank)

standard constructor; will output on rank 0

standard constructor; will output on rank 0 and only initializes if tracking compiled in and not disable by environment

References UsageTracker::pTrackerHTTP.


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