You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2014/01/02 17:17:04 UTC

[14/17] git commit: [#6388] more help text

[#6388] more help text


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/cdb91d5f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/cdb91d5f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/cdb91d5f

Branch: refs/heads/master
Commit: cdb91d5fc62b16c78eea6fd5993b901663035c32
Parents: 35ed1c3
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Fri Dec 20 19:14:16 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Thu Jan 2 16:16:21 2014 +0000

----------------------------------------------------------------------
 scripts/perf/call_count.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/cdb91d5f/scripts/perf/call_count.py
----------------------------------------------------------------------
diff --git a/scripts/perf/call_count.py b/scripts/perf/call_count.py
index 0c93705..f965294 100755
--- a/scripts/perf/call_count.py
+++ b/scripts/perf/call_count.py
@@ -39,10 +39,14 @@ from forgewiki import model as WM
 
 
 def parse_args():
-    parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter,
-                                     description='Count number of expensive calls (mongo, markdown, etc) for a standard page.')
+    parser = argparse.ArgumentParser(
+        formatter_class=argparse.RawTextHelpFormatter,
+        description='Count number of expensive calls (mongo, markdown, etc) for a standard page.\n'
+                    'Currently its a _discuss URL with a few posts on it.  This exercises core logic\n'
+                    '(project & tool lookup, security, discussion thread, main template, etc) but\n'
+                    'intentionally avoids most tool-specific code.')
     parser.add_argument('--verbose', '-v', action='store_true', default=False,
-                        help='Show call details')
+                        help='Show call details.  Note that Timers with debug_each_call=False (like ming\'s Cursor.next) are not displayed in verbose mode (but they are counted).')
     parser.add_argument('--debug-html', action='store_true', default=False,
                         help='Save HTML responses as local files')
     parser.add_argument('--data-file', default='call_counts.csv', type=argparse.FileType('a'),