Commits

Author Commit Message Labels Comments Date
Marius Gedminas
Bugfix: logview was unreasonably slow in the presence of may log messages. Turns out the slowdown was in re.sub() with a long replacement string; I rewrote the code to use re.split() instead and now it's fast.
Marius Gedminas
Fix incorrect relative URLs to images in profile.css.
Marius Gedminas
Make it possible to specify cutoff point for culling dot graph nodes. Dozer writes the call graph to a file for each request, in Graphviz .dot format. That graph isn't complete; by default all functions that take less than 0.2 ms to run are hidden. This change makes that cutoff point configurable, e.g. like this in a PasteDeploy .ini file: [filter:profiler] use = egg:Dozer#profile profile_dir = ./profiles/ dot_graph_cutoff = 0.2
Marius Gedminas
Coloring for tracebacks; somewhat hacky. Uses the same syntax as log coloring: traceback.pattern = #rrggbb The intent was to match filename patterns, maybe function names too. The implementation matches arbitrary substrings in the whole File "filename", line 42, in funcname line of source code littany, so be careful.
Marius Gedminas
New settings: keep_tracebacks_limit (default to 20), skip_last_n_frames. The first setting is needed because extracting and rendering every traceback makes things unbearably slow if there are a lot of log messages. To clarify "unbearably": a request with ~500 logging calls takes 1 second. Without a traceback limit it took more than 10 minutes, at which point I gave up and killed the server process. With the traceback limit it once again took about 1 second. The sec…
Marius Gedminas
If keep_tracebacks = yes, show me the code that produced each log message.
Marius Gedminas
Truncate long messages in the middle, not at the end.
Marius Gedminas
Use the configured log level for 'request started/finished' messages. Mention the importance of configuring the root logger's level correctly in the docstring.
Marius Gedminas
Accept colors from local config too. Makes this work: [filter-app:logview] egg = Dozer#logview logview.sqlalchemy = #faa (Previously you had to put the color config into [DEFAULT], if I understand things correctly.)
Marius Gedminas
Small optimization.
Marius Gedminas
Stick the thread id into the environment. It's useful to see if two requests were processed by the same thread or not. I'm not very happy about abusing the environment thus, but I'm not sure where else to stick it.
Marius Gedminas
Show bars indicating request cost.
Marius Gedminas
Hovering trumps age highlighting.
Marius Gedminas
Highlight age column by age.
Marius Gedminas
CSS tweaks; removing all errors removes the header too.
Marius Gedminas
Error out early if profile_dir not specified. Also apparently Paste takes config options and passes them in kwargs.
Marius Gedminas
Raise nesting limit from 15 to 20.
Marius Gedminas
Show call counts, sort children by cost, expand largest childen, support more nesting levels in the CSS.
Marius Gedminas
Show cost in profile list; show error type as well as message.
Marius Gedminas
Prettier color scheme for dot graphs. Inspired by http://code.google.com/p/jrfonseca/wiki/Gprof2Dot
Marius Gedminas
Show full environment; very very slightly nicer CSS.
Marius Gedminas
Handle unpickling errors. profile_path settable in config file. /_profile works the same way as /_profile/showall, instead of causing an obscure error.
mar...@gedmin.as
Show timestamp relative to previous message.
mar...@gedmin.as
Added paste filter entry points for LogView.
Ben Bangert
Handle verbose body element
Ian Bicking
python2.4 fixes, and requirement
Ian Bicking
make PIL optional
Ian Bicking
fallbacks for PIL imports
Ian Bicking
Make the prefix (/_dozer) configurable
Ben Bangert
Test for content-type first
  1. Prev
  2. Next