Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 1, 2012
  1. @DurhamG

    Add a format option to group results by function.

    DurhamG authored
    The default behavior is not changed.
    This options allows output rows to be by filename:function instead of
    filename:lineno:function.  If particular lines within a function
    take more than 1% of the total time, they are output as nested rows
    beneath the function row and include a snippet of the source. I found
    this to be less noisy than having a row for every line that got sampled.
    
    Example:
    
     %   cumulative      self
    time    seconds   seconds  name
    71.33      1.97      1.68  dirstate.py:walk
                                  56%   1.33   line 674: entries = listdir(jo...
                                   6%   0.13   line 681: nf = normalize(nd an...
                                   3%   0.07   line 700: visit = sorted([f fo...
                                   2%   0.04   line 667: nd = work.pop()
    16.17      2.35      0.38  dirstate.py:status
                                   6%   0.15   line 764: state, mode, size, t...
                                   2%   0.05   line 773: mtime = int(st.st_mtime)
                                   2%   0.04   line 776: or ((mode ^ st.st_mo...
                                   1%   0.04   line 775: ((size != st.st_size...
                                   1%   0.04   line 755: listignored).iteritems():
                                   1%   0.03   line 779: or fn in self._copymap):
     6.52      0.15      0.15  match.py:<lambda>
                                   7%   0.15   line 105: m = lambda f: True
     3.12      0.07      0.07  match.py:__call__
                                   3%   0.06   line 111: return self.matchfn(fn)
     1.36      0.03      0.03  dirstate.py:<lambda>
                                   1%   0.03   line 610: normalize = lambda x...
     0.54      0.01      0.01  re.py:escape
     0.54      0.01      0.01  dirstate.py:_join
     0.14      0.01      0.00  dirstate.py:_read
     0.14      0.00      0.00  scmutil.py:read
     0.14      0.00      0.00  demandimport.py:_demandimport
     0.00      0.01      0.00  util.py:__get__
     0.00      2.36      0.00  dispatch.py:_dispatch
     0.00      0.01      0.00  match.py:__init__
Commits on Jun 13, 2012
  1. @cyberdelia

    strict pep8 compliance

    cyberdelia authored
Commits on Jun 10, 2012
  1. @cyberdelia

    add profile contextmanager

    cyberdelia authored
Commits on Apr 10, 2012
  1. @jedbrown
Commits on Apr 9, 2012
  1. Improve docs

    authored
    --HG--
    rename : README => README.md
  2. Track line numbers properly.

    authored
    Previously, when sampling the stack, the first line number in a function was
    being used instead of the current line number. Not very useful.
  3. Kill off trailing whitespace

    authored
Commits on Aug 16, 2011
  1. Initial commit

    Jeff Muizelaar authored
Something went wrong with that request. Please try again.