Skip to content

Jinja2 Block Tracing #625

@adamchainz

Description

@adamchainz

It seems feasible to trace the rendering of individual Jinja2 blocks. This could help users determine which parts of their templates are slow.

In our interception of Template.render(), we could iterate over the template's blocks attribute and somehow patch the blocks to be instrumented.

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