)]}'
{
  "commit": "207400cee176a4f71c3b595ae880dc62cd632c06",
  "tree": "0c9be7d4c33e08ca97c6cf4e4599e4fa5b4bec28",
  "parents": [
    "16ab9cab9f4768ad84b9afb2c6e24dd76e3e2c56"
  ],
  "author": {
    "name": "David \u0027Digit\u0027 Turner",
    "email": "digit@google.com",
    "time": "Thu May 07 01:33:04 2020 +0200"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Fri May 08 18:06:39 2020 +0000"
  },
  "message": "build/gen.py: Add --link-lib\u003dLINK_LIB option.\n\nThis adds one new command-line option to the build/gen.py\nscript to allow linking the final executable(s) with one or\nmore extra libraries.\n\nThis is mostly useful to link a custom malloc implementation\nor a cpu profiling library, like libtcmalloc.a or libprofiler.a\nprovided by the the gperftools project [1].\n\nFor the record, using:\n\n  build/gen.py --use-icf --use-lto --link-lib\u003d/path/to/libtcmalloc.a\n\nResults in a noticeably faster GN executable for both Chromium\n(21% faster) and the Fuchsia build (43% faster!)\n\nIt is also possible to link against a more recent release of TCMalloc\nfrom [2], but measurements show no noticeable performance difference\nwith the older release for GN workloads.\n\n  Chromium:\n    BEFORE:  Done. Made 13124 targets from 2289 files in 3593ms\n    AFTER:   Done. Made 13124 targets from 2289 files in 4358ms\n\n  Fuchsia:\n    BEFORE: [...] Done. Made 47263 targets from 3819 files in 14263ms\n    AFTER:  [...] Done. Made 47263 targets from 3819 files in 9923ms\n\n[1] https://github.com/gperftools/gperftools\n[2] https://github.com/google/tcmalloc\n\nChange-Id: If21911f13a886eeae09797099a078ed1d4f789dd\nReviewed-on: https://gn-review.googlesource.com/c/gn/+/8360\nReviewed-by: Scott Graham \u003cscottmg@chromium.org\u003e\nCommit-Queue: David Turner \u003cdigit@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8083aacc71e32c9b2a10cde102a6ea1b0b8528f0",
      "old_mode": 33261,
      "old_path": "build/gen.py",
      "new_id": "a00558b7a56615db24be981f2bded6f1a79df4c6",
      "new_mode": 33261,
      "new_path": "build/gen.py"
    }
  ]
}
