Reduce the number of worker threads GN uses.

I noticed the main thread is being starved which slows down execution. On a Z620 using the new default improves generation speed for Chrome by 20%.

This also adds trace events for the OnResolved step of target resolution which is a bottleneck in some cases.

Review URL: https://codereview.chromium.org/1464463003

Cr-Original-Commit-Position: refs/heads/master@{#360955}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d0f8e7b23cd48a8e4685e82b7beffb0930554bba
4 files changed
tree: 7ad7400f82abac8859612c12fac57e57161986f6
  1. tools/