From 79b531db876515994a2f85cc71d5ae3b60bedb26 Mon Sep 17 00:00:00 2001 From: Hixie Date: Mon, 21 Dec 2015 10:58:36 -0800 Subject: [PATCH] Update docs for benchmarks. --- packages/flutter/benchmark/README.md | 12 ++++++++---- packages/flutter/pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/flutter/benchmark/README.md b/packages/flutter/benchmark/README.md index f676a21e04..4c2f23ee18 100644 --- a/packages/flutter/benchmark/README.md +++ b/packages/flutter/benchmark/README.md @@ -7,12 +7,16 @@ so benchmarks here are typically run by hand. To run a benchmark: 1. Build `sky_shell` for Linux Release using the instructions in the [Engine repository](https://github.com/flutter/engine). -2. Run `pub get` in the `packages/unit` directory. +2. Run `pub get` in the `packages/flutter` directory. 3. Run the benchmarks by running the following command from the root - of the flutter repository (replacing `stocks/layout_bench.dart` - with the path to whichever benchmark you want to run): + of the flutter repository. Replace `stocks/layout_bench.dart` with + the path to whichever benchmark you want to run. If you didn't + build the engine in the recommended place, then also update the + path accordingly. If you made changes to sky_services, you'll also + need to update the `pubspec.yaml` file to point to that using a + dependency_override. ``` -/path/to/engine/src/out/Release/sky_shell packages/unit/benchmark/stocks/layout_bench.dart --package-root=packages/unit/packages +../engine/src/out/Release/sky_shell packages/flutter/benchmark/stocks/layout_bench.dart --package-root=packages/flutter/packages ``` diff --git a/packages/flutter/pubspec.yaml b/packages/flutter/pubspec.yaml index 87cf893534..e4726dcd18 100644 --- a/packages/flutter/pubspec.yaml +++ b/packages/flutter/pubspec.yaml @@ -26,7 +26,7 @@ dependencies: dev_dependencies: flutter_test: path: ../flutter_test - stocks: + stocks: # for the benchmarks path: ../../examples/stocks environment: