Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: tools/telemetry/unittest_data/high_cpu.html

Issue 23717016: Add cpu_stats for the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using /proc to get current CPU counters Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/unittest_data/high_cpu.html
diff --git a/tools/telemetry/unittest_data/high_cpu.html b/tools/telemetry/unittest_data/high_cpu.html
new file mode 100644
index 0000000000000000000000000000000000000000..06f96a9d3d5e0a1115554929c82aed72bef9ec5e
--- /dev/null
+++ b/tools/telemetry/unittest_data/high_cpu.html
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<script>
+function busy_loop() {
+ var start = Date.now();
+ while (Date.now() < start + 10);
+}
+
+setInterval(busy_loop, 15);
+</script>
+</head>
+<body>
+Your CPU is going craaazyyy
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698