Skip to main content

Module timing

Module timing 

Source
Expand description

Per-task timing accumulator.

Mirrors Common/IpTimedTask.hpp (Common/IpDebug.{hpp,cpp} is omitted — debug tracing is replaced by the journalist).

Structs§

TimedGuard
Drop-on-end guard returned by TimedTask::guard. Calls TimedTask::end_if_started in its destructor so a function with many exit paths can wrap a section with a single line.
TimedTask
Equivalent to Ipopt::TimedTask. Use TimedTask::start / TimedTask::end around a section to accumulate cpu/system/wall time. TimedTask::end_if_started is the exception-safe variant.
TimingStatistics
Aggregate of per-subsystem TimedTask counters. Mirrors Algorithm/IpTimingStatistics.{hpp,cpp}. Owned by IpoptApplication and shared (via Rc) with the algorithm, NLP, and KKT solver so each subsystem can bump its own field. Reported at the end of a solve when print_timing_statistics yes.