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

JULIA_WAIT_FOR_TRACY=1 doesn't work #57791

Open
nsajko opened this issue Mar 16, 2025 · 5 comments
Open

JULIA_WAIT_FOR_TRACY=1 doesn't work #57791

nsajko opened this issue Mar 16, 2025 · 5 comments
Labels
observability metrics, timing, understandability, reflection, logging, ...

Comments

@nsajko
Copy link
Contributor

nsajko commented Mar 16, 2025

This doesn't work as documented, julia doesn't wait for Tracy to connect:

A typical workflow for profiling Julia with Tracy involves starting Julia using:

JULIA_WAIT_FOR_TRACY=1 ./julia -e '...'

The environment variable ensures that Julia waits until it has successfully connected to the Tracy profiler before continuing execution. Afterward, use the Tracy profiler UI, click Connect, and Julia execution should resume and profiling should start.

Source: https://docs.julialang.org/en/v1.13-dev/devdocs/external_profilers/

@nsajko nsajko added the observability metrics, timing, understandability, reflection, logging, ... label Mar 16, 2025
@topolarity
Copy link
Member

Is this from a Tracy-enabled build of Julia? The support is not compiled in by default

@nsajko
Copy link
Contributor Author

nsajko commented Mar 17, 2025

Yeah, I compiled Julia with make MARCH=native MCPU=native MTUNE=native WITH_TRACY=1. Tracy works fine, I can connect, save the data, and view it. The problem is just the "Julia waits until it has successfully connected to the Tracy profiler before continuing execution" part.

@topolarity
Copy link
Member

Huh, I'm not able to reproduce locally.

What are your system details?

@nsajko
Copy link
Contributor Author

nsajko commented Mar 18, 2025

Archlinux

Julia Version 1.13.0-DEV.232
Commit 7d161265e9 (2025-03-16 15:48 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-19.1.7 (ORCJIT, znver2)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 8 virtual cores)
Environment:
  JULIA_NUM_PRECOMPILE_TASKS = 4
  JULIA_PKG_PRECOMPILE_AUTO = 0

@topolarity
Copy link
Member

Can you confirm you did a make cleanall before doing the build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
observability metrics, timing, understandability, reflection, logging, ...
Projects
None yet
Development

No branches or pull requests

2 participants