launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #07738
Re: Trying to add storm tracing to scripts
> This tracer is installed by the act of importing its module, so the
> install_tracer() call is a no-op.
>
> Next, you'll need to use set_request_started() before
> LaunchpadStatementTracer will start recording, then you'll need to
> trigger an oops before calling clear_request_started() at the end of
> the interesting bit (or just letting the script end). At least, this
> is how checkwatches does it... which may or may not be a good
> recommendation ;)
Sorted, thanks Gavin.
> See the WorkingBase class in lib/lp/bugs/scripts/checkwatches/base.py
> for some convenience stuff that should be easy to borrow.
My eyes - help, my eyes.
References