forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename measure to gauge (flutter#34)
Because the name "measure" has already been taken in pub.
- Loading branch information
Showing
15 changed files
with
83 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## 0.1.1 | ||
|
||
* Improve tests and remove unnecessary resources. | ||
|
||
## 0.1.0 | ||
|
||
* Initial release. | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
packages/measure/pubspec.yaml → packages/gauge/pubspec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
name: measure | ||
description: Tools for measuring some performance metrics. | ||
name: gauge | ||
description: Tools for gauging/measuring some performance metrics. | ||
author: Flutter Team <[email protected]> | ||
homepage: https://github.com/flutter/packages/tree/master/packages/measure | ||
version: 0.1.0 | ||
homepage: https://github.com/flutter/packages/tree/master/packages/gauge | ||
version: 0.1.1 | ||
|
||
executables: | ||
measure: measure | ||
gauge: gauge | ||
|
||
dependencies: | ||
args: ^1.5.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2019 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'dart:io'; | ||
|
||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
final String gaugeRootPath = Directory.current.absolute.path; | ||
|
||
test('help works', () { | ||
final ProcessResult result = Process.runSync( | ||
'dart', | ||
<String>['$gaugeRootPath/bin/gauge.dart', 'help'], | ||
); | ||
|
||
expect( | ||
result.stdout.toString(), | ||
contains( | ||
'Tools for gauging/measuring some performance metrics.', | ||
)); | ||
}); | ||
|
||
test('ioscpugpu parse help works', () { | ||
final ProcessResult result = Process.runSync( | ||
'dart', | ||
<String>['$gaugeRootPath/bin/gauge.dart', 'ioscpugpu', 'parse'], | ||
); | ||
final String help = result.stdout.toString(); | ||
expect( | ||
help.split('\n')[0], | ||
equals('Parse an existing instruments trace with CPU/GPU measurements.'), | ||
); | ||
expect( | ||
help, | ||
contains('Usage: gauge ioscpugpu parse [arguments] <trace-file-path>'), | ||
); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.