Boost logo

Boost :

From: christopher diggins (cdiggins_at_[hidden])
Date: 2005-02-08 15:06:51

----- Original Message -----
From: "Bob Bell" <belvis_at_[hidden]>
> A final data point is an answer to your original question "Would you use
> it?"
> Not without being able to pause and resume the profiler. I also wouldn't
> be
> interested in it as long as the reporting and collection concepts are
> confused.
> Bob

Thanks for your comments,

Okay, so the general consensus has been quite consistent:
- ability to turn off globally
- pause and resume
- As unintrusive as possible (no requirement of code reporting)
- hierarchical reporting (optional)

I think perhaps the best approach then would be a macro library. I propose
the following macros:

BOOST_PROFILING_OFF // turns off the macros

BOOST_PROFILE_START(profiler_type, name)

I then will follow Gennadiy's suggestion of multiple policies:

basic_profiler<reporting_policy, logging_policy, collecting_policy,

How does this sound? My apologies to Gennadiy for having been hard-headed.

Christopher Diggins
Object Oriented Template Library (OOTL)

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