Skip to main content
FRAMES NO FRAMES

Class IloOplProfiler

Definition file: ilopl/ilooplprofiler.h
Map of IloOplProfilerIloOplProfilerIloOplProfiler
The OPL profiling feature.

An instance of this class gives access to the OPL profiling information. Pass an object of this class to the IloOplSettings instance to activate the profiling feature.

See Also:

Method Summary
public voidend()
public IloOplProfiler(IloEnv env)
public IloOplProfiler(IloEnv env, std::ostream & traceStream)
public voidprintReport(std::ostream & os)
Method Detail

IloOplProfiler

public IloOplProfiler(IloEnv env)

This is the constructor for the default profiler.


IloOplProfiler

public IloOplProfiler(IloEnv env, std::ostream & traceStream)

This is the constructor for the default profiler with real-time tracing enabled.

Real-time tracing is useful for debugging purposes. It helps you find the OPL processing activity that caused a crash.

Parameters:

env
The IloEnv object to allocate memory from.
traceStream
A stream object to print profiling events as the are raised.

end

public void end()

Clears the memory used by this object


printReport

public void printReport(std::ostream & os)

This member function prints the profiling information. Call this method after all OPL activities are done.

Parameters:

os
The output stream.