platform: graphics: Add machine name and exec-env to trace-result PB
When collecting machine info, tool Harvest writes the machine name and
exec env to the profile data. With this CL, companion tool
get_device_info copies these items to the trace-result protobuf.
Trace-result PB excerpt:
{
"id": {
"value": "user/gwink-tvc_steam_728880-overcooked__2-20200528_090359-20200928-174541"
},
"startTime": "2020-09-28T23:45:41Z",
"endTime": "2020-09-28T23:46:59Z",
"machine": {
"value": "gwink-sona-C135643"
},
"executionEnvironment": "CROUTON",
...
BUG=None
TEST=Build with emerge and make. Manually test get_device_info with
various profiles.
Change-Id: I757ec7e2c6a30fff893b4755cb0e68295ebeb9c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/graphics/+/2438957
Reviewed-by: David Riley <davidriley@chromium.org>
Commit-Queue: Georges Winkenbach <gwink@chromium.org>
Tested-by: Georges Winkenbach <gwink@chromium.org>
2 files changed