Boost logo

Boost-Commit :

From: john.groups_at_[hidden]
Date: 2008-01-20 16:10:46


Author: jtorjo
Date: 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
New Revision: 42885
URL: http://svn.boost.org/trac/boost/changeset/42885

Log:
[logging]
v0.20.12, 20 jan 2008
- added example using profiling, @ref common_scenario_profile "see it"
- refactored finding the writer; added logger_to_writer class
Text files modified:
   sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp | 5 ++++-
   sandbox/logging/boost/logging/detail/raw_doc/scenarios.hpp | 15 +++++++++++++++
   sandbox/logging/boost/logging/detail/raw_doc/scenarios_code.hpp | 4 ++++
   sandbox/logging/boost/logging/detail/raw_doc/table_of_contents.hpp | 1 +
   sandbox/logging/boost/logging/detail/raw_doc/todo.hpp | 2 ++
   sandbox/logging/boost/logging/profile.hpp | 7 ++++---
   sandbox/logging/lib/logging/internal/vc8/loggingvc8/loggingvc8.vcproj | 12 ++++++++++++
   7 files changed, 42 insertions(+), 4 deletions(-)

Modified: sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
@@ -1,7 +1,10 @@
 /**
 @page page_changelog Changelog
 
-_at_section changelog_cur_ver Current Version: v0.20.10, 20 jan 2008
+@section changelog_cur_ver Current Version: v0.20.12, 20 jan 2008
+- added example using profiling, @ref common_scenario_profile "see it"
+- refactored finding the writer; added logger_to_writer class
+- fully implemented profiling
 - added logger_to_gather, removed DEFINE_GATHER_CLASS;
 - modified compile_time example, to see compile time with precompiled header
 - added profiler - allow profiling the logging code

Modified: sandbox/logging/boost/logging/detail/raw_doc/scenarios.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/scenarios.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/scenarios.hpp 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
@@ -15,6 +15,8 @@
 - @ref common_scenarios_10
 
 - @ref common_your_scenario
+- @ref common_scenario_using_tags
+- @ref common_scenario_profile
 
 - @ref scenario_multiple_files
     - @ref scenario_multiple_files_program
@@ -132,6 +134,19 @@
 @copydoc using_tags
 
 @ref scenarios_code_using_tags "Click to see the code"
+\n\n\n
+
+
+
+
+@section common_scenario_profile Profiling the time spent while logging
+
+@copydoc use_profiler
+
+@ref scenarios_code_profile "Click to see the code"
+\n\n\n
+
+
 
 */
 

Modified: sandbox/logging/boost/logging/detail/raw_doc/scenarios_code.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/scenarios_code.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/scenarios_code.hpp 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
@@ -102,6 +102,10 @@
 
 
 
+@section scenarios_code_profile Profiling the time spent while logging
+
+@include use_profiler.cpp
+\n\n\n
 
 */
 

Modified: sandbox/logging/boost/logging/detail/raw_doc/table_of_contents.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/table_of_contents.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/table_of_contents.hpp 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
@@ -28,6 +28,7 @@
     - @ref common_scenarios_3
     - @ref common_your_scenario
     - @ref common_scenario_using_tags
+ - @ref common_scenario_profile
     - @ref common_scenarios "More scenarios..."
     - @ref scenario_multiple_files
     - @ref starter_project

Modified: sandbox/logging/boost/logging/detail/raw_doc/todo.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/todo.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/todo.hpp 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
@@ -24,6 +24,8 @@
 
 - @c normal on_dedicated_thead - remove dependency on boost::thread
 
+- @c normal must have helper to call on on_destructed - like, to be able to write to cout,etc
+
 - @c high make it compile faster (most likely improve use_format_write, etc)
 
 - @c normal profiler - we can care about threads as well (that is, for instance, when logging on another thread, see how much time

Modified: sandbox/logging/boost/logging/profile.hpp
==============================================================================
--- sandbox/logging/boost/logging/profile.hpp (original)
+++ sandbox/logging/boost/logging/profile.hpp 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
@@ -14,7 +14,8 @@
 // See http://www.torjo.com/log2/ for more details
 
 /**
- Allows you to profile your application' logging
+ @file boost/logging/profile.hpp
+ @brief Allows you to profile your application' logging
 
     That is, see how much CPU time is taken for logging
 */
@@ -255,7 +256,7 @@
 #include <boost/logging/profile.hpp>
 
 namespace bl = boost::logging ;
-typedef bl::logger_format_write< > <b>raw_log_type</b>;
+typedef bl::logger_format_write< > raw_log_type;
 typedef bl::profile::compute_for_logger<raw_log_type>::type log_type;
 
 BOOST_DECLARE_LOG(g_l, log_type)
@@ -315,7 +316,7 @@
 #include <boost/logging/profile.hpp>
 
 namespace bl = boost::logging ;
-typedef bl::filter::no_ts <b>raw_filter</b>;
+typedef bl::filter::no_ts raw_filter;
 typedef compute_for_filter<raw_filter>::type filter;
 
 BOOST_DECLARE_LOG_FILTER(g_l_filter, filter)

Modified: sandbox/logging/lib/logging/internal/vc8/loggingvc8/loggingvc8.vcproj
==============================================================================
--- sandbox/logging/lib/logging/internal/vc8/loggingvc8/loggingvc8.vcproj (original)
+++ sandbox/logging/lib/logging/internal/vc8/loggingvc8/loggingvc8.vcproj 2008-01-20 16:10:45 EST (Sun, 20 Jan 2008)
@@ -328,6 +328,14 @@
                         <File
                                 RelativePath=".\test_now.cpp"
>
+ <FileConfiguration
+ Name="Test|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
                         </File>
                 </Filter>
                 <Filter
@@ -934,6 +942,10 @@
                                 </FileConfiguration>
                         </File>
                         <File
+ RelativePath="..\..\..\samples\scenarios\use_profiler.cpp"
+ >
+ </File>
+ <File
                                 RelativePath="..\..\..\samples\scenarios\use_tss_ostringstream.cpp"
>
                                 <FileConfiguration


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk