Skip to content

Conversation

@whatsthecraic
Copy link

@whatsthecraic whatsthecraic commented Oct 28, 2025

PR Description

This PR adds instrumentation when tracing the functions compiled, emitted as part of the output of the precompile statements. The instrumentation is represented as JSON object inside a julia comment, in the same line of the associated precompile statement. It provides the time, in milliseconds, spent waiting for the codegen lock, and whether the same function has been compiled multiple times in nested calls.

Checklist

Requirements for merging:

- Add control for recording wait time to Julia mutexes
- Enable this control for the codegen lock
- Record the codegen lock waiting time in `jl_generate_fptr` when called from `jl_compile_method_internal`
- Emit the codegen lock waiting time as well as the codegen lock nesting level in compilation traces
@kpamnany kpamnany force-pushed the dd-compile-allocations-properties branch from c8a3421 to f843f0a Compare October 29, 2025 17:57
@kpamnany kpamnany changed the title Additional instrumentation for tracing compilation Emit codegen lock waiting time in compilation traces Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants