Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja2 Block Tracing #625

Open
adamchainz opened this issue Feb 10, 2021 · 0 comments
Open

Jinja2 Block Tracing #625

adamchainz opened this issue Feb 10, 2021 · 0 comments

Comments

@adamchainz
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant