[CrOS] SysInternals: Line chart library

Desktop / Chromium - Chung-Sheng Wu [google.com] - 11 September 2017 04:07 EDT

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

This patch adds the implementation for the Internal Page line chart library. The line chart library maintain a HTML canvas and show the data with a scrollable line chart.


Bug: 752002 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ifd7a1aadb95693dce2c88202486b951e94d86513 Reviewed-on: https://chromium-review.googlesource.com/649390

124d093 [CrOS] SysInternals: Line chart library
chrome/browser/browser_resources.grd | 4 +-
.../sys_internals/compiled_resources2.gyp | 15 +
chrome/browser/resources/sys_internals/index.html | 4 +
.../resources/sys_internals/line_chart/README.md | 75 +++
.../line_chart/compiled_resources2.gyp | 63 ++
.../sys_internals/line_chart/constants.js | 156 +++++
.../sys_internals/line_chart/data_series.js | 299 ++++++++++
.../resources/sys_internals/line_chart/index.js | 11 +
.../sys_internals/line_chart/line_chart.css | 67 +++
.../sys_internals/line_chart/line_chart.js | 648 +++++++++++++++++++++
.../resources/sys_internals/line_chart/menu.js | 155 +++++
.../sys_internals/line_chart/scrollbar.js | 166 ++++++
.../sys_internals/line_chart/sub_chart.js | 309 ++++++++++
.../sys_internals/line_chart/unit_label.js | 280 +++++++++
.../ui/webui/sys_internals/sys_internals_ui.cc | 4 +
chrome/test/data/webui/sys_internals/api_test.js | 73 +++
.../sys_internals/line_chart/data_series_test.js | 99 ++++
.../sys_internals/line_chart/line_chart_test.js | 107 ++++
.../webui/sys_internals/line_chart/menu_test.js | 46 ++
.../sys_internals/line_chart/scrollbar_test.js | 29 +
.../sys_internals/line_chart/sub_chart_test.js | 47 ++
.../sys_internals/line_chart/unit_label_test.js | 64 ++
.../sys_internals/sys_internals_browsertest.js | 109 ++--
chrome/test/data/webui/sys_internals/test_util.js | 9 +
.../closure_compiler/compiled_resources2.gyp | 1 +
25 files changed, 2768 insertions(+), 72 deletions(-)

Upstream: git.chromium.org


  • Share