Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71456 - sandbox/local/libs/local/example
From: lorcaminiti_at_[hidden]
Date: 2011-04-23 22:26:42


Author: lcaminiti
Date: 2011-04-23 22:26:42 EDT (Sat, 23 Apr 2011)
New Revision: 71456
URL: http://svn.boost.org/trac/boost/changeset/71456

Log:
Added profiling.
Added:
   sandbox/local/libs/local/example/chrono.py (contents, props changed)
   sandbox/local/libs/local/example/profile.xls (contents, props changed)

Added: sandbox/local/libs/local/example/chrono.py
==============================================================================
--- (empty file)
+++ sandbox/local/libs/local/example/chrono.py 2011-04-23 22:26:42 EDT (Sat, 23 Apr 2011)
@@ -0,0 +1,15 @@
+
+import sys
+import time
+import os
+
+cmd = ""
+for arg in sys.argv[1:]:
+ cmd += str(arg) + " "
+
+start = time.time()
+ret = os.system(cmd)
+sec = time.time() - start
+
+if (ret == 0): print "\n" + str(sec) + "s"
+

Added: sandbox/local/libs/local/example/profile.xls
==============================================================================
Binary file. No diff available.


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