]> git.proxmox.com Git - cargo.git/commit
Don't print profiling information twice
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 8 Apr 2018 08:37:05 +0000 (11:37 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 8 Apr 2018 08:41:40 +0000 (11:41 +0300)
commit154948837afbbfc312764b24982ba7dbac0d4ebd
treefd914455329055c9bc0144ba603a9678ac7a1f29
parent681756252b718c4e638b3b8004bdc068b5529ae3
Don't print profiling information twice

It's important to `.clear` the messages so that we don't print them
again for the next "profiling session". It might be argued that really
we should have a single "profiling session" for Cargo, but we don't at
the moment.

And, while we are at it, let's lock stdout as well, so that we won't
get confused when Cargo becomes multi-threaded and prints profiling info
from several threads simultaneously.
src/cargo/util/profile.rs