Skip to content

Add db_runtime and view_runtime to middleware #58

Description

@Manfred
  • As a developer I want to see db (and view) runtime for my benchmark requests so I can figure out where the application can be improved.

In Rails 5 we can get db_runtime and view_runtime for a controller action through Active Support notifications. It might be interesting to add these to the response headers.

At which point does it make sense to encode multiple values in one header? For example:

X-PerfCheck: db_runtime=0.23,view_runtime=0.54,query_count=3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions