You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tachyon's pstats_collector does not respect "no-color" modes #154335
The Tachyon sampling profiler always emits colored output when used with the pstats collector. For example, the NO_COLOR environment variable is currently not respected:
NO_COLOR=1 python -m profiling.sampling run --pstats test.py
Enabling this would be useful e.g. in cases where the output is redirected into a file for further processing, as it avoids including ANSI escape sequences in the file.
Activity
hugovk commentedon Jul 21, 2026
Yes, it'd be useful to use
_colorize.can_colorizeto respect the terminal settings and the env vars.A PR would be great, thanks!
pythongh-154335: Cover profiler color policy and update NEWS
gh-154335: Allow disabling terminal colors in Tachyon's `pstats_colle…
[3.15] gh-154335: Allow disabling terminal colors in Tachyon's `pstat…