[CrOS] SysInternals: Frontend

Desktop / Chromium - Chung-Sheng Wu [google.com] - 15 September 2017 00:44 EDT

Shows information like CPU usage, Memory status, Zram status.

This patch adds the implementation for the chrome://sys-internals page frontend. It gets the data from backend and then uses the LineChart library to show the data.

Bug: 752002 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I41fd29135b2b40050713cf40050b95b6f7734fbf Reviewed-on: https://chromium-review.googlesource.com/659700 Commit-Queue: Zhong-sheng Wu

5d8065f [CrOS] SysInternals: Frontend
chrome/browser/browser_resources.grd | 6 +
.../sys_internals/compiled_resources2.gyp | 23 +-
.../browser/resources/sys_internals/constants.js | 61 +++
chrome/browser/resources/sys_internals/externs.js | 55 ++
chrome/browser/resources/sys_internals/img/cpu.svg | 3 +
.../browser/resources/sys_internals/img/info.svg | 3 +
.../browser/resources/sys_internals/img/memory.svg | 3 +
.../browser/resources/sys_internals/img/menu.svg | 3 +
.../browser/resources/sys_internals/img/zram.svg | 3 +
chrome/browser/resources/sys_internals/index.css | 155 ++++++
chrome/browser/resources/sys_internals/index.html | 81 +++
chrome/browser/resources/sys_internals/index.js | 573 +++++++++++++++++++++
chrome/browser/resources/sys_internals/types.js | 90 ++++
.../ui/webui/sys_internals/sys_internals_ui.cc | 14 +-
.../data/webui/sys_internals/page_drawer_test.js | 77 +++
.../data/webui/sys_internals/page_infopage_test.js | 81 +++
.../data/webui/sys_internals/page_switch_test.js | 104 ++++
.../data/webui/sys_internals/page_unit_test.js | 48 ++
.../sys_internals/sys_internals_browsertest.js | 20 +
chrome/test/data/webui/sys_internals/test_util.js | 33 ++
20 files changed, 1434 insertions(+), 2 deletions(-)

Upstream: git.chromium.org


  • Share