The chrome://sys-internals
URL provides an overview of system internals in ChromeOS, such as CPU and memory usage.
getSysInfo
message, which collects various system metrics.chrome.send()
RPC mechanism.You can use the usual Simple Chrome workflow for development.
WebUI testing is performed on the host as part of browser_tests
. Refer to Testing WebUI Pages for detailed instructions.
Since this is intended to run on the host, the args.gn
SHOULD NOT include ChromeOS board-specific import statements, such as:
import("//build/args/chromeos/hatch.gni")
Including such statements may cause the following error when executing the test binary:
error while loading shared libraries: libsync.so: cannot open shared object file: No such file or directory
Prepare the build output folder:
mkdir -p out/cros_browser_test
Generate GN args:
gn gen out/cros_browser_test --args='target_os="chromeos" use_remoteexec=true use_siso=true is_chrome_branded=true is_component_build=false'
The above assumes you are using a distributed compiler service to speed up compilation. Adjust these arguments as needed.
Build the tests:
autoninja -C out/cros_browser_test browser_tests
Run the tests:
./testing/run_with_dummy_home.py \ testing/xvfb.py \ out/cros_browser_test/browser_tests \ --gtest_filter='SysInternalsBrowserTest.*'
Be patient. This process may take several minutes.