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

Issue 1524413002: Add --x-perf-report flag to the dartanalyzer command (Closed)

Created:
5 years ago by skybrian
Modified:
5 years ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add --x-perf-report flag to the dartanalyzer command Also added a couple of performance tags to catch time spent in the driver. BUG= R=brianwilkerson@google.com, paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/ba1b82b240f644441d39eeaa6f2c596414e5856e

Patch Set 1 #

Total comments: 13

Patch Set 2 : add metadata, change flag name #

Patch Set 3 : add a test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -11 lines) Patch
M pkg/analyzer_cli/lib/src/analyzer_impl.dart View 1 4 chunks +21 lines, -10 lines 0 comments Download
M pkg/analyzer_cli/lib/src/driver.dart View 1 2 3 chunks +20 lines, -1 line 0 comments Download
M pkg/analyzer_cli/lib/src/options.dart View 1 3 chunks +7 lines, -0 lines 0 comments Download
A pkg/analyzer_cli/lib/src/perf_report.dart View 1 2 1 chunk +81 lines, -0 lines 1 comment Download
M pkg/analyzer_cli/test/all.dart View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A pkg/analyzer_cli/test/perf_report_test.dart View 1 2 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
skybrian
If this looks useful then I will write some tests.
5 years ago (2015-12-16 02:08:31 UTC) #2
Brian Wilkerson
Looks good so far. I assume this is only intended for internal use (rather than ...
5 years ago (2015-12-16 15:08:43 UTC) #3
Paul Berry
lgtm https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/driver.dart File pkg/analyzer_cli/lib/src/driver.dart (right): https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/driver.dart#newcode227 pkg/analyzer_cli/lib/src/driver.dart:227: var buf = new StringBuffer(); There's already library ...
5 years ago (2015-12-16 15:11:26 UTC) #4
skybrian
re: It would be interesting to add more information to the output (which might require ...
5 years ago (2015-12-16 18:48:10 UTC) #5
Brian Wilkerson
https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/options.dart File pkg/analyzer_cli/lib/src/options.dart (right): https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/options.dart#newcode244 pkg/analyzer_cli/lib/src/options.dart:244: ..addOption('perf-log', That would be fine. I just want it ...
5 years ago (2015-12-16 19:06:45 UTC) #6
skybrian
https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/analyzer_impl.dart File pkg/analyzer_cli/lib/src/analyzer_impl.dart (right): https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/analyzer_impl.dart#newcode127 pkg/analyzer_cli/lib/src/analyzer_impl.dart:127: errorInfos.add(context.getErrors(source)); On 2015/12/16 15:08:43, Brian Wilkerson wrote: > The ...
5 years ago (2015-12-17 04:20:27 UTC) #8
skybrian
Here's example output for the second patch: { "platform": { "osType": "mac", "dartSdkVersion": "1.13.0 (Wed ...
5 years ago (2015-12-17 04:57:15 UTC) #9
Brian Wilkerson
Still LGTM https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/analyzer_impl.dart File pkg/analyzer_cli/lib/src/analyzer_impl.dart (right): https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/analyzer_impl.dart#newcode127 pkg/analyzer_cli/lib/src/analyzer_impl.dart:127: errorInfos.add(context.getErrors(source)); sounds good https://chromiumcodereview.appspot.com/1524413002/diff/1/pkg/analyzer_cli/lib/src/analyzer_impl.dart#newcode132 pkg/analyzer_cli/lib/src/analyzer_impl.dart:132: static final ...
5 years ago (2015-12-17 15:05:42 UTC) #10
skybrian
5 years ago (2015-12-17 19:40:22 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
ba1b82b240f644441d39eeaa6f2c596414e5856e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698