user_acivity: Changed some replacing pair strings.
Changed ('/build/gnawty', '/build/BOARD') to ('gnawty', 'BOARD') and
('/build/amd64-generic', '/build/BOARD') to ('amd64-generic', 'BOARD').
In the CWP data we have multiple paths containing the name of the board.
For example, we have /build/gnawty, but we also have
/var/cache/chromeos-chrome/chrome-src-internal/src/out_gnawty.
I made the subtitution generic.
BUG=None
TEST=None
Change-Id: Ie716a0f966b78a3c4ff85746cfa01b8b210d8b59
Reviewed-on: https://chrome-internal-review.googlesource.com/298336
Tested-by: Evelina Dumitrescu <evelinad@google.com>
Reviewed-by: George Burgess <gbiv@google.com>
Reviewed-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Evelina Dumitrescu <evelinad@google.com>
Reviewed-on: https://chromium-review.googlesource.com/435920
Commit-Ready: Luis Lozano <llozano@chromium.org>
Tested-by: Luis Lozano <llozano@chromium.org>
diff --git a/user_activity_benchmarks/utils.py b/user_activity_benchmarks/utils.py
index eea2bfc..009b241 100644
--- a/user_activity_benchmarks/utils.py
+++ b/user_activity_benchmarks/utils.py
@@ -21,8 +21,8 @@
PARENT_CHILD_FUNCTIONS_SEPARATOR = ';;'
# List of pairs of strings used for make substitutions in file names to make
# CWP and pprof data consistent.
-FILE_NAME_REPLACING_PAIR_STRINGS = [('/build/gnawty', '/build/BOARD'),
- ('/build/amd64-generic', '/build/BOARD'),
+FILE_NAME_REPLACING_PAIR_STRINGS = [('gnawty', 'BOARD'),
+ ('amd64-generic', 'BOARD'),
(' ../sysdeps', ',sysdeps'),
(' ../nptl', ',nptl'),
(' aes-x86_64.s', ',aes-x86_64.s'),