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:

@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
- 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 f843f0a to 9af9d4c Compare November 4, 2025 17:47
@kpamnany kpamnany merged commit 0f9190b into v1.10.2+RAI Nov 5, 2025
1 check passed
@kpamnany kpamnany deleted the dd-compile-allocations-properties branch November 5, 2025 22:12
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