CHERRY-PICK: Add thermal monitor to goofy.

- Add thermal monitor to goofy
  Now two new options are available:
    thermal_monitor_period_secs
    thermal_monitor_delta
  The monitor will pull the sensors every thermal_monitor_period_secs,
  however, only dump the logs once any of the sensor value varis greater
  than thermal_monitor_delta

BUG=chrome-os-partner:40594
TEST=Manually
TEST=make lint LINT_WHITELIST=" \
  py/tools/thermal_monitor.py \
  py/goofy/goofy.py py/test/factory.py"

Original-Change-Id: If27a45d867413209738ac9d3a26b4ef2220f19ba
Reviewed-on: https://chromium-review.googlesource.com/283351
Reviewed-by: Chun-ta Lin <itspeter@chromium.org>
Commit-Queue: Chun-ta Lin <itspeter@chromium.org>
Trybot-Ready: Chun-ta Lin <itspeter@chromium.org>
Tested-by: Chun-ta Lin <itspeter@chromium.org>

Conflicts:
	py/goofy/goofy.py

Change-Id: Ie4b4ee7b0dd1f77d4d9d44c54e843b51bb3eb370
Reviewed-on: https://chromium-review.googlesource.com/302901
Reviewed-by: Chih-Yu Huang <akahuang@chromium.org>
Commit-Queue: Chih-Yu Huang <akahuang@chromium.org>
Tested-by: Chih-Yu Huang <akahuang@chromium.org>
3 files changed