Boost logo

Boost :

Subject: Re: [boost] [Boost.tracer] library request
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-01-20 12:27:50

On 01/20/2010 02:47 AM, Andrew Chinkoff wrote:
> [Boost.tracer] library request is founded on a desire to
> trace some statistics about program execution.

You might be interested in the Boost.Log library found here:

The docs are available online:

The library provides the way to set timers and monitor some activity on
a time line. For example:

   void bar();

   void foo()
     logger lg;

     BOOST_LOG_SCOPED_THREAD_ATTR("Duration", timer);
     BOOST_LOG(lg) << "Start";
     BOOST_LOG(lg) << "End";

If formatting and sink are set up, it will produce something like this:

   [00:00:00.000000] Start
   [00:00:01.001793] End

What's good is that if you write logs in bar(), they will be put on the
time line between Start and End with the according time readings.

Boost list run by bdawes at, gregod at, cpdaniel at, john at