| Index: mojo/devtools/common/devtoolslib/perf_dashboard.py
|
| diff --git a/mojo/devtools/common/devtoolslib/perf_dashboard.py b/mojo/devtools/common/devtoolslib/perf_dashboard.py
|
| index e406b09ec9fc1414d29aeefd4401c01b27b8da5a..235eab40b7d126d471b1b8f5155eebf43f31af04 100644
|
| --- a/mojo/devtools/common/devtoolslib/perf_dashboard.py
|
| +++ b/mojo/devtools/common/devtoolslib/perf_dashboard.py
|
| @@ -91,6 +91,19 @@ def add_argparse_server_arguments(parser):
|
| 'upload the data.')
|
|
|
|
|
| +def normalize_label(label):
|
| + """Normalizes a label to be used for data sent to performance dashboard.
|
| +
|
| + This replaces:
|
| + '/' -> '-', as slashes are used to denote test/sub-test relation.
|
| + ' ' -> '_', as there is a convention of not using spaces in test names.
|
| +
|
| + Returns:
|
| + Normalized label.
|
| + """
|
| + return label.replace('/', '-').replace(' ', '_')
|
| +
|
| +
|
| def _get_commit_count():
|
| """Returns the number of git commits in the repository of the cwd."""
|
| return subprocess.check_output(
|
|
|