Boost logo

Boost Testing :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-10-02 11:28:50


I remember Beman mentioning timing information in bjam, and me
mentioning that we already supported that. But I never got around to
saying how (I plain forgot). So here it is...

Like the HDRRULE
<http://boost.org/doc/html/jam/language.html#jam.language.variables.builtins.hdrscan>
variable there exists also a __TIMING_RULE__ variable. When set on a
target
<http://boost.org/doc/html/jam/language.html#jam.language.variables> to
a name of a bjam rule bjam will call the rule upon completion of the
action that builds the target. The rule is called as:

   rule timming-rule ( target rest * : user : system )

Where "user" and "system" are the timing info. Unfortunately there is
only one example I could find of using the timing info. In the
testing.jam there's a rule, AFAICT since Dave wrote it without usage
documentation, that will make bjam output the timing info to a file (and
to stdout) for any target.

HTH.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost-testing list run by mbergal at meta-comm.com