[buck] display the time it took to merge Buck targets (--flavors)

Summary:
This can be a long-running step and it's useful to know how long it took. We
already dump some statistics on stderr after merging is done, this just adds
one more line.

Reviewed By: mbouaziz

Differential Revision: D5833580

fbshipit-source-id: 70e19ab
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent c6812df1eb
commit 16dcae58fa

@ -178,10 +178,12 @@ let process_merge_file deps_file =
| Error error | Error error
-> L.internal_error "Couldn't read deps file '%s': %s" deps_file error ) ; -> L.internal_error "Couldn't read deps file '%s': %s" deps_file error ) ;
create_multilinks () ; create_multilinks () ;
L.progress "Targets merged: %d@." stats.targets_merged ; L.progress "Targets merged: %d@\n" stats.targets_merged ;
L.progress "Files linked: %d@." stats.files_linked ; L.progress "Files linked: %d@\n" stats.files_linked ;
L.progress "Files multilinked: %d@." stats.files_multilinked L.progress "Files multilinked: %d@\n" stats.files_multilinked
let merge_captured_targets () = let merge_captured_targets () =
let time0 = Unix.gettimeofday () in
L.progress "Merging captured Buck targets...@\n%!" ; L.progress "Merging captured Buck targets...@\n%!" ;
process_merge_file (infer_deps ()) process_merge_file (infer_deps ()) ;
L.progress "Merging captured Buck targets took %.03fs@\n%!" (Unix.gettimeofday () -. time0)

Loading…
Cancel
Save