gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, openvg, updated. 61c4ebc4a07593cf7892


From: Rob Savoye
Subject: [Gnash-commit] [SCM] Gnash branch, openvg, updated. 61c4ebc4a07593cf78924c17c12f04eef21e9013
Date: Thu, 28 Oct 2010 19:13:53 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, openvg has been updated
       via  61c4ebc4a07593cf78924c17c12f04eef21e9013 (commit)
       via  c162caf5db671ad0d4e319feedfd3341768d4db9 (commit)
      from  2f13e506863737e64a7fb6f92cb31de3f3744310 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=61c4ebc4a07593cf78924c17c12f04eef21e9013


commit 61c4ebc4a07593cf78924c17c12f04eef21e9013
Author: Rob Savoye <address@hidden>
Date:   Thu Oct 28 13:10:45 2010 -0600

    don't print the renderer test total time

diff --git a/librender/testr.cpp b/librender/testr.cpp
index 609ea5f..bcf9ead 100644
--- a/librender/testr.cpp
+++ b/librender/testr.cpp
@@ -262,7 +262,7 @@ void
 test_renderer(Renderer *renderer, const std::string &type)
 {
     cout << "Testing " << type << " Renderer" << endl;
-    Timer trend("Renderer Tests", true);
+//    Timer trend("Renderer Tests", true);
     
     if (!renderer) {
         runtest.unresolved("No renderer to test!");

http://git.savannah.gnu.org/cgit//commit/?id=c162caf5db671ad0d4e319feedfd3341768d4db9


commit c162caf5db671ad0d4e319feedfd3341768d4db9
Author: Rob Savoye <address@hidden>
Date:   Thu Oct 28 13:10:13 2010 -0600

    optionally print the elapsed time when destructing.

diff --git a/librender/testr.cpp b/librender/testr.cpp
index b8862b1..609ea5f 100644
--- a/librender/testr.cpp
+++ b/librender/testr.cpp
@@ -92,9 +92,21 @@ GtkWidget *create_GTK_window();
 // Simple class to do nanosecond based timing for performance analysis
 class Timer {
 public:
-    Timer(const std::string &name) { _name = name; start(); }
-    Timer() { start(); }
-    ~Timer() { /*cerr << "Total time for " << _name << " was: " << elapsed() 
<< endl;*/ };
+    Timer(const std::string &name, bool flag)
+        {
+            _print = flag;
+            _name = name;
+            start();
+        }
+    Timer(const std::string &name) : _print(false) { _name = name; start(); }
+    Timer() : _print(false) { start(); }
+    ~Timer()
+        {
+            stop();
+            if (_print) {
+                cerr << "Total time for " << _name << " was: " << elapsed() << 
endl;
+            }
+        };
     
     void start() {
         _starttime = boost::posix_time::microsec_clock::local_time(); 
@@ -114,6 +126,7 @@ public:
     std::string &getName() { return _name; };
     
 private:
+    bool _print;
     std::string _name;
     boost::posix_time::ptime _starttime;
     boost::posix_time::ptime _stoptime;
@@ -249,6 +262,7 @@ void
 test_renderer(Renderer *renderer, const std::string &type)
 {
     cout << "Testing " << type << " Renderer" << endl;
+    Timer trend("Renderer Tests", true);
     
     if (!renderer) {
         runtest.unresolved("No renderer to test!");

-----------------------------------------------------------------------

Summary of changes:
 librender/testr.cpp |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]