Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Issue 2424233002: [gn] Add trace entries for loading and blocking on imports (Closed)

Created:
4 years, 2 months ago by jamesr
Modified:
4 years, 1 month ago
Reviewers:
brettw
CC:
agrieve+watch_chromium.org, chromium-reviews, Dirk Pranke, tfarina, Nico
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[gn] Add trace entries for loading and blocking on imports This adds trace entries for loading imports and for blocking on an import for longer than 20ms. These make gn's tracelog significantly easier to understand when imported files take a long time to process. For example, in the Chrome build on Mac //build/toolchain/mac/BUILD.gn blocks for ~240ms running sdk_info.py because //build/config/mac/mac_sdk.gni runs that script and //ui/base/BUILD.gn blocks for ~350ms because it is waiting for the import lock on mac_sdk.gni to be released. Without these traces, it is not immediately obvious why //build/toolchain/mac/BUILD.gn is running that script and it is very unclear why //ui/base/BUILD.gn takes so long. Committed: https://crrev.com/840ab52b0bbdbe46a093c76c4a57b505d7e29e17 Cr-Commit-Position: refs/heads/master@{#427151}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -1 line) Patch
M tools/gn/import_manager.cc View 4 chunks +19 lines, -0 lines 0 comments Download
M tools/gn/trace.h View 2 chunks +6 lines, -1 line 0 comments Download
M tools/gn/trace.cc View 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
jamesr
I wrote this to investigate some issues in a non-Chrome environment but it turns out ...
4 years, 2 months ago (2016-10-17 21:49:45 UTC) #2
Nico
(make sure you have the two changes on https://bugs.chromium.org/p/chromium/issues/detail?id=609541 in your clone) On Oct 17, ...
4 years, 2 months ago (2016-10-17 21:54:14 UTC) #3
brettw
lgtm
4 years, 1 month ago (2016-10-24 19:17:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2424233002/1
4 years, 1 month ago (2016-10-24 19:59:43 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-24 21:16:38 UTC) #11
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 21:18:07 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/840ab52b0bbdbe46a093c76c4a57b505d7e29e17
Cr-Commit-Position: refs/heads/master@{#427151}

Powered by Google App Engine
This is Rietveld 408576698