# HG changeset patch # User Stephanie Marcu # Date 1276673430 -7200 # Node ID ca9e1c9123d756351f535cc36145e380fda9b08c # Parent 1e5ef464cadecc6dd3f1d7a455956f95f84b060c [c-c exlog] fix code and documentation diff -r 1e5ef464cade -r ca9e1c9123d7 devtools/devctl.py --- a/devtools/devctl.py Tue Jun 15 18:00:30 2010 +0200 +++ b/devtools/devctl.py Wed Jun 16 09:30:30 2010 +0200 @@ -650,7 +650,7 @@ except OSError, ex: raise BadCommandUsage("can't open rql log file %s: %s" % (filepath, ex)) - for lineno, line in enumerate(file): + for lineno, line in enumerate(stream): if not ' WHERE ' in line: continue try: diff -r 1e5ef464cade -r ca9e1c9123d7 doc/book/en/devrepo/profiling.rst --- a/doc/book/en/devrepo/profiling.rst Tue Jun 15 18:00:30 2010 +0200 +++ b/doc/book/en/devrepo/profiling.rst Wed Jun 16 09:30:30 2010 +0200 @@ -26,7 +26,7 @@ .. sourcecode:: sh - $ cubicweb-ctl exlog < ~/myapp-rql.log + $ cubicweb-ctl exlog ~/myapp-rql.log 0.07 50 Any A WHERE X eid %(x)s, X firstname A {} 0.05 50 Any A WHERE X eid %(x)s, X lastname A {} 0.01 1 Any X,AA ORDERBY AA DESC WHERE E eid %(x)s, E employees X, X modification_date AA {}