Boost logo

Boost :

From: Brian Braatz (brianb_at_[hidden])
Date: 2005-03-04 12:42:16


I am generally doing the following- Solving my specific problem for my
specific application. After I am through with that issue, I will look
more at the general issues (as I ended up inheriting the profiler).

For my APP- I am logging in hierarchical form the timings-(in addition
to the report the profiler already does) so if you have

(code is high level and pseudo)

FuncB()
{
        PROFILE POINT FUNCTION B
        {
                Sleep(1000); // 1 second
        }
}

FuncA()
{
        PROFILE POINT FUNCTION B
        {
                Sleep(1000); // 1 second
                FuncB();
        }
}

Then you will have in the profile Report (overall):
        FuncA took 2 seconds
        FuncB took 1 second

But the Profile LOG (like a trace of what happened) looks like this
DEPTH NAME TIME
0 FuncA 2 Seconds
1 FuncB 1 Second

Does that answer your question, or am I missing something?

> -----Original Message-----
> From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]]
> On Behalf Of Goran Mitrovic
> Sent: Friday, March 04, 2005 12:21 AM
> To: boost_at_[hidden]
> Subject: [boost] Re: high_resolution_timer \ timer feature requestsfor
> Boost.Timer
>
> How do you intent to deal with nested timers (outer ones might become
very
> inaccurate because of the inner ones)?
>
> Also, how do you plan to represent results of such profiling?
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk