On Wed, Oct 9, 2013 at 10:27 AM, Jiang Jiang <
jia...@opera.com> wrote:
> Am I missing something or is the Mac build not optimized at this point?
Does it look like the grit part is taking twice as long on Mac? I
tried profiling a gn run and it seemed to confirm it.
$ out/Release/gn --time
File parse times: (time in ms, name)
1.63 //skia/BUILD.gn
1.40 //net/BUILD.gn
0.97 //base/BUILD.gn
0.53 //third_party/icu/BUILD.gn
0.47 //build/config/compiler/BUILD.gn
0.47 //build/config/BUILDCONFIG.gn
0.47 //third_party/leveldatabase/BUILD.gn
0.38 //chrome/BUILD.gn
0.26 //crypto/BUILD.gn
0.24 //third_party/sfntly/BUILD.gn
0.19 //third_party/libxml/BUILD.gn
0.18 //tools/gn/BUILD.gn
0.16 //ipc/BUILD.gn
0.14 //tools/grit/grit_rule.gni
0.13 //testing/BUILD.gn
0.11 //third_party/libusb/BUILD.gn
0.11 //third_party/zlib/BUILD.gn
0.10 //net/third_party/nss/BUILD.gn
0.09 //build/toolchain/mac/BUILD.gn
0.08 //sdch/BUILD.gn
0.08 //build/toolchain/nacl/BUILD.gn
0.07 //third_party/libevent/BUILD.gn
0.07 //third_party/re2/BUILD.gn
0.07 //crypto/ssl/BUILD.gn
0.07 //third_party/snappy/BUILD.gn
0.07 //url/BUILD.gn
0.06 //build/config/BUILD.gn
0.04 //third_party/mach_override/BUILD.gn
0.04 //third_party/expat/BUILD.gn
0.03 //base/third_party/nspr/BUILD.gn
0.03 //base/allocator/BUILD.gn
0.03 //crypto/ssl/flags.gni
0.02 //BUILD.gn
0.02 //base/third_party/dynamic_annotations/BUILD.gn
0.02 //build/config/mac/BUILD.gn
0.02 //third_party/modp_b64/BUILD.gn
File execute times: (total time in ms, # executions, name)
9940.77 1 //chrome/BUILD.gn
433.41 1 //net/BUILD.gn
22.22 2 //base/BUILD.gn
13.50 1 //third_party/leveldatabase/BUILD.gn
10.99 1 //skia/BUILD.gn
7.50 1 //ipc/BUILD.gn
6.26 1 //third_party/libevent/BUILD.gn
6.23 1 //tools/gn/BUILD.gn
5.83 1 //third_party/icu/BUILD.gn
5.41 1 //testing/BUILD.gn
5.40 1 //crypto/BUILD.gn
5.25 2 //build/config/compiler/BUILD.gn
4.68 1 //third_party/zlib/BUILD.gn
3.68 1 //url/BUILD.gn
3.29 1 //third_party/snappy/BUILD.gn
2.91 1 //third_party/libusb/BUILD.gn
2.12 2 //base/third_party/dynamic_annotations/BUILD.gn
2.07 1 //third_party/sfntly/BUILD.gn
2.06 1 //third_party/re2/BUILD.gn
1.98 1 //sdch/BUILD.gn
1.94 1 //net/third_party/nss/BUILD.gn
1.80 2 //base/third_party/nspr/BUILD.gn
1.62 1 //third_party/expat/BUILD.gn
1.62 2 //base/allocator/BUILD.gn
1.50 2 //third_party/modp_b64/BUILD.gn
1.34 2 //build/config/BUILD.gn
1.21 1 //BUILD.gn
1.19 1 //build/toolchain/mac/BUILD.gn
1.03 1 //build/toolchain/nacl/BUILD.gn
0.68 1 //third_party/libxml/BUILD.gn
0.64 1 //third_party/mach_override/BUILD.gn
0.56 1 //crypto/ssl/BUILD.gn
0.56 2 //build/config/BUILDCONFIG.gn
0.21 1 //build/config/mac/BUILD.gn
Script execute times: (total time in ms, # executions, name)
10329.69 38 //tools/grit/grit_info.py
Done. Wrote 126 targets from 36 files in 9947ms
- Jiang