#6699 Provide a way to add additional Timers to AlluraTimerMiddleware

v1.0.1
closed
General
2015-08-20
2013-09-20
No

I have custom allura tools and would like to add Timer('sqlalchemy-query', sqlalchemy.orm.query.Query, '__iter__'), to AlluraTimerMiddleware to measure the sqlalchemy calls. Perhaps this is generic enough to put in Allura within an import trap, but it'd be nice if external code could add their own Timers.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-09-23
    • status: open --> in-progress
    • assigned_to: Dave Brondsema
    • Size: --> 1
    • Milestone: forge-backlog --> forge-oct-04
     
  • Dave Brondsema

    Dave Brondsema - 2013-09-24
    • status: in-progress --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2013-09-24

    {allura,forgehg,forge-classic}:db/6699

     
  • Dave Brondsema

    Dave Brondsema - 2013-09-24

    For anyone who finds this, I ended up using Timer('sqlalchemy', sqlalchemy.engine.base.Connection, '_execute_context') See http://www.sqlalchemy.org/trac/wiki/UsageRecipes/Profiling for more

     
    • QA: Tim Van Steenburgh
     
    • status: code-review --> closed
     

Log in to post a comment.