about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-22 08:58:48 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-26 09:14:45 +1000
commit666b1b68a7200513872303f1bc8136088a09d4ad (patch)
treeb9c22e09f5b6b4a9a246e762a5292e8bfc35ecc0 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent487bdeb519a821298b76a35d8c437ef2e733da0d (diff)
downloadrust-666b1b68a7200513872303f1bc8136088a09d4ad.tar.gz
rust-666b1b68a7200513872303f1bc8136088a09d4ad.zip
Tweak thread names for CGU processing.
For non-incremental builds on Unix, currently all the thread names look
like `opt regex.f10ba03eb5ec7975-cgu.0`. But they are truncated by
`pthread_setname` to `opt regex.f10ba`, hiding the numeric suffix that
distinguishes them. This is really annoying when using a profiler like
Samply.

This commit changes these thread names to a form like `opt cgu.0`, which
is much better.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions