Adds manual boot perf script

This script loads the DevTools frontend in hosted mode and waits for the
elements panel to appear. After this it calculates the mean and median
boot times and logs them out.

Bug: 1027519
Change-Id: I01094a95d5178bbf60f964a5c26e92efa604b1e3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1942287
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
diff --git a/scripts/devtools_paths.py b/scripts/devtools_paths.py
index 1f89917..a8b8c29 100644
--- a/scripts/devtools_paths.py
+++ b/scripts/devtools_paths.py
@@ -7,6 +7,7 @@
 
 from os import path
 import sys
+import platform
 
 
 # Find the root path of the checkout.
@@ -69,6 +70,23 @@
     return path.join(node_modules_path(), 'karma', 'bin', 'karma')
 
 
+def boot_perf_test_path():
+    return path.join(devtools_root_path(), 'test', 'perf', 'bootperf.js')
+
+
+def hosted_mode_script_path():
+    return path.join(devtools_root_path(), 'scripts', 'hosted_mode', 'server.js')
+
+
+def downloaded_chrome_binary_path():
+    return path.abspath(path.join(
+    *{
+        'Linux': (devtools_root_path(), 'third_party', 'chrome', 'chrome-linux', 'chrome'),
+        'Darwin': (devtools_root_path(), 'third_party', 'chrome', 'chrome-mac', 'Chromium.app', 'Contents', 'MacOS', 'Chromium'),
+        'Windows': (devtools_root_path(), 'third_party', 'chrome', 'chrome-win', 'chrome.exe'),
+    }[platform.system()]))
+
+
 def license_checker_path():
     return path.join(node_modules_path(), 'license-checker', 'bin', 'license-checker')