| OLD | NEW |
| 1 # Clovis in the Cloud: Developer Guide | 1 # Clovis in the Cloud: Developer Guide |
| 2 | 2 |
| 3 This document describes how to collect Chromium traces using Google Compute | 3 This document describes how to collect Chromium traces using Google Compute |
| 4 Engine. | 4 Engine. |
| 5 | 5 |
| 6 [TOC] | 6 [TOC] |
| 7 | 7 |
| 8 ## Initial setup | 8 ## Initial setup |
| 9 | 9 |
| 10 Install the [gcloud command line tool][1]. | 10 Install the [gcloud command line tool][1]. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 # CLOUD_STORAGE_PATH is the path in Google Storage where generated traces will | 103 # CLOUD_STORAGE_PATH is the path in Google Storage where generated traces will |
| 104 # be stored. | 104 # be stored. |
| 105 # CHROME_PATH is the path to the Chrome executable on the host. | 105 # CHROME_PATH is the path to the Chrome executable on the host. |
| 106 # CHROMIUM_SRC is the Chromium src directory. | 106 # CHROMIUM_SRC is the Chromium src directory. |
| 107 cat >$CONFIG_FILE << EOF | 107 cat >$CONFIG_FILE << EOF |
| 108 { | 108 { |
| 109 "project_name" : "$PROJECT_NAME", | 109 "project_name" : "$PROJECT_NAME", |
| 110 "cloud_storage_path" : "$CLOUD_STORAGE_PATH", | 110 "cloud_storage_path" : "$CLOUD_STORAGE_PATH", |
| 111 "chrome_path" : "$CHROME_PATH", | 111 "chrome_path" : "$CHROME_PATH", |
| 112 "src_path" : "$CHROMIUM_SRC", | 112 "src_path" : "$CHROMIUM_SRC", |
| 113 "taskqueue_tag" : "some_tag" | 113 "taskqueue_tag" : "some_tag", |
| 114 "trace_database_filename" : "trace_database.json" # Optional |
| 114 } | 115 } |
| 115 EOF | 116 EOF |
| 116 ``` | 117 ``` |
| 117 | 118 |
| 118 Launch the app, passing the path to the deployment configuration file: | 119 Launch the app, passing the path to the deployment configuration file: |
| 119 | 120 |
| 120 ```shell | 121 ```shell |
| 121 python $CHROMIUM_SRC/tools/android/loading/cloud/backend/worker.py \ | 122 python $CHROMIUM_SRC/tools/android/loading/cloud/backend/worker.py \ |
| 122 --config $CONFIG_FILE | 123 --config $CONFIG_FILE |
| 123 ``` | 124 ``` |
| 124 | 125 |
| 125 You can now [use the app][2]. | 126 You can now [use the app][2]. |
| 126 | 127 |
| 127 Tear down the local environment: | 128 Tear down the local environment: |
| 128 | 129 |
| 129 ```shell | 130 ```shell |
| 130 deactivate | 131 deactivate |
| 131 ``` | 132 ``` |
| 132 | 133 |
| 133 [1]: https://cloud.google.com/sdk | 134 [1]: https://cloud.google.com/sdk |
| 134 [2]: #Use-the-app | 135 [2]: #Use-the-app |
| 135 [3]: ../frontend/README.md | 136 [3]: ../frontend/README.md |
| OLD | NEW |