Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

For larger projects, it may be helpful to see where sqlc is spending its time during execution. Use the runtime/trace package to instrument the compiler. To turn on tracing, set the trace attribute in SQLCDEBUG:

SQLCDEBUG=trace=1 sqlc-dev generate

This will output trace.out. You can also pick a custom output name.

SQLCDEBUG=trace=foo.out sqlc-dev generate

@kyleconroy kyleconroy marked this pull request as ready for review October 29, 2021 16:07
@kyleconroy kyleconroy merged commit 63a755d into main Oct 29, 2021
@kyleconroy kyleconroy deleted the kyle/trace branch October 29, 2021 16:44
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

Successfully merging this pull request may close these issues.

2 participants