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

Issue 1807723002: Timing hooks to profile linters (#24548). (Closed)

Created:
4 years, 9 months ago by pquitslund
Modified:
4 years, 9 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Timing hooks to profile linters (#24548). Adds a `TimedAstVisitor` that wraps and times base visitors. The perf hit for collecting timing was neglible so I opted to NOT surface a way to not collect the data. We can add that if needed. Once this is published in a new analyzer, I can bake client support into (for example) the linter. More context and a client mock here: https://github.com/dart-lang/sdk/issues/24548 BUG= R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/9a042501c945db0b6a40f89983b7dd22f4266278

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1031 lines, -33 lines) Patch
M pkg/analyzer/lib/dart/ast/visitor.dart View 1 chunk +995 lines, -0 lines 4 comments Download
M pkg/analyzer/lib/src/services/lint.dart View 3 chunks +20 lines, -30 lines 2 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 chunk +13 lines, -3 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
Brian Wilkerson
Other than the recursive call to visitChildren, LGTM. https://codereview.chromium.org/1807723002/diff/1/pkg/analyzer/lib/dart/ast/visitor.dart File pkg/analyzer/lib/dart/ast/visitor.dart (right): https://codereview.chromium.org/1807723002/diff/1/pkg/analyzer/lib/dart/ast/visitor.dart#newcode916 pkg/analyzer/lib/dart/ast/visitor.dart:916: : ...
4 years, 9 months ago (2016-03-15 22:57:24 UTC) #3
pquitslund
Thanks! https://codereview.chromium.org/1807723002/diff/1/pkg/analyzer/lib/dart/ast/visitor.dart File pkg/analyzer/lib/dart/ast/visitor.dart (right): https://codereview.chromium.org/1807723002/diff/1/pkg/analyzer/lib/dart/ast/visitor.dart#newcode916 pkg/analyzer/lib/dart/ast/visitor.dart:916: : stopwatch = watch != null ? watch ...
4 years, 9 months ago (2016-03-15 23:09:17 UTC) #4
pquitslund
4 years, 9 months ago (2016-03-15 23:10:45 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
9a042501c945db0b6a40f89983b7dd22f4266278 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698