Added missing code block language in docs (#147481)
- added language for all code blocks - replaced `bash` or `shell` with `sh` for consistency. - added `sh` and `console` in the GitHub template link generator. - updated test for GitHub template.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
To run the scrolling benchmark on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter drive --profile test_driver/scroll_perf.dart
|
||||
```
|
||||
|
||||
@@ -17,7 +17,7 @@ More detailed logs should be in `build/complex_layout_scroll_perf.timeline.json`
|
||||
|
||||
To measure startup time on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter run --profile --trace-startup
|
||||
```
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Performance benchmarks use either flutter drive or the web benchmark harness.
|
||||
|
||||
To run the cull opacity benchmark on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter drive --profile -t test_driver/run_app.dart --driver test_driver/cull_opacity_perf_test.dart
|
||||
```
|
||||
|
||||
@@ -20,7 +20,7 @@ More detailed logs should be in `build/cull_opacity_perf.timeline.json`.
|
||||
|
||||
To run the cubic-bezier benchmark on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter drive --profile -t test_driver/run_app.dart --driver test_driver/cubic_bezier_perf_test.dart
|
||||
```
|
||||
|
||||
@@ -33,7 +33,7 @@ More detailed logs should be in `build/cubic_bezier_perf.timeline.json`.
|
||||
To run the backdrop filter benchmark on a device:
|
||||
To run a mobile benchmark on a device:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
flutter drive --profile -t test_driver/run_app.dart --driver test_driver/[test_name]_test.dart
|
||||
```
|
||||
|
||||
@@ -69,7 +69,7 @@ host machine. The following tests are E2E:
|
||||
|
||||
These tests should be run by:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
flutter drive --profile -t test/[test_name]_e2e.dart --driver test_driver/e2e_test.dart
|
||||
```
|
||||
|
||||
@@ -118,7 +118,7 @@ and the profile contains unobfuscated names.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
```sh
|
||||
cd dev/benchmarks/macrobenchmarks
|
||||
|
||||
# Runs in profile mode using the HTML renderer
|
||||
@@ -130,7 +130,7 @@ flutter run --web-renderer=canvaskit --profile -d web-server lib/web_benchmarks.
|
||||
|
||||
You can also run all benchmarks exactly as the devicelab runs them:
|
||||
|
||||
```
|
||||
```sh
|
||||
cd dev/devicelab
|
||||
|
||||
# Runs using the HTML renderer
|
||||
|
||||
@@ -4,7 +4,7 @@ To run these benchmarks on a device, first run `flutter logs' in one
|
||||
window to see the device logs, then, in a different window, run any of
|
||||
these:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter run --release lib/gestures/velocity_tracker_bench.dart
|
||||
flutter run --release lib/gestures/gesture_detector_bench.dart
|
||||
flutter run --release lib/stocks/animation_bench.dart
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
To run the scrolling benchmark on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter drive --profile test_driver/scroll_perf.dart
|
||||
```
|
||||
|
||||
@@ -17,7 +17,7 @@ More detailed logs should be in `build/platform_views_scroll_perf.timeline.json`
|
||||
|
||||
To measure startup time on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter run --profile --trace-startup
|
||||
```
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
To run the scrolling benchmark on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter drive --profile test_driver/scroll_perf.dart
|
||||
```
|
||||
|
||||
@@ -17,7 +17,7 @@ More detailed logs should be in `build/platform_views_scroll_perf_hybrid_composi
|
||||
|
||||
To measure startup time on a device:
|
||||
|
||||
```
|
||||
```sh
|
||||
flutter run --profile --trace-startup
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user