Merge lp://staging/~gary/launchpad/bug821531 into lp://staging/launchpad
Proposed by
Gary Poster
Status: | Merged |
---|---|
Approved by: | Gary Poster |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13632 |
Proposed branch: | lp://staging/~gary/launchpad/bug821531 |
Merge into: | lp://staging/launchpad |
Diff against target: |
808 lines (+387/-131) 4 files modified
.bzrignore (+1/-0) lib/lp/services/profile/profile.pt (+45/-21) lib/lp/services/profile/profile.py (+108/-8) lib/lp/services/profile/tests.py (+233/-102) |
To merge this branch: | bzr merge lp://staging/~gary/launchpad/bug821531 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | code | Approve | |
Review via email:
|
Commit message
[r=benji][bug=821531] Make it possible to request a pstats ++profile++ with "++profile++pstats" (in addition to a callgrind one, still available as "++pstats+
Description of the change
This change adds the ability to get a stdlib-friendly profile output to ++profile++. This lets you dig in farther than KCacheGrind does, which has a maximum of the top 499 calls displayed for a given sorting.
Lint is happy except for being confused with the start of profile.pt.
Thanks
To post a comment you must log in.
This branch looks good. I can't wait to try it out. Here are some
relatively minor comments.
The name "pstats" might be a little better than "stdlib" because it's a
pstats-formatted file that's generated. For that matter, now that there
are more than one output formats, "log" might be better replaced with a
word that describes the generated format ("callgrind") while perhaps
leaving "log" as a backward-compatible alias.
Line 111 of the diff: the docstring summary for StdLibStats wraps.
Line 130 of the diff: JavaScript has warped your brain, you're missing a
comma on the last element of "mapping".
Line 183 of the diff, teeny-tiny suggestion: you could use '-'.join(...)
instead of '%s-%s-%s-%s' % (...).
Lines 235 and 256 of the diff: more docstring wrapping. Maybe those
should just be comments instead.