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

Unified Diff: chrome/test/data/media/html/media_fps_perf.html

Issue 9464004: Fix CPU and memory perf PyAuto test running on av_perf. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix rebase. Created 8 years, 10 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: chrome/test/data/media/html/media_fps_perf.html
diff --git a/chrome/test/data/media/html/media_fps_perf.html b/chrome/test/data/media/html/media_fps_perf.html
index be3378ca4c5e05905176be01a4ced0e252de4c9e..0916db04e7aff476617ee08eeaed47c700d9b801 100644
--- a/chrome/test/data/media/html/media_fps_perf.html
+++ b/chrome/test/data/media/html/media_fps_perf.html
@@ -1,9 +1,9 @@
-<!-- Used by media_fps_perf to calculate <video> performance statistics. -->
+<!-- Used by media_stat_perf to calculate <video> performance statistics. -->
<!DOCTYPE html>
<html lang="en-US">
<head>
- <title>FPS Perf Test</title>
+ <title>CPU, Memomry, and FPS Perf Test</title>
DaleCurtis 2012/02/29 22:39:11 Memory
shadi 2012/03/01 02:40:53 Done.
</head>
<body>
<div id="log">
@@ -22,6 +22,7 @@
var droppedFPS = [];
var startTime = 0;
var intID = 0; // interval ID, used to end the window intervals.
+ var statsEnabled = false; // set to true to record FPS stats.
function calculateStats() {
if (video.readyState <= HTMLMediaElement.HAVE_CURRENT_DATA ||
@@ -56,7 +57,8 @@
decodedFPS = [];
droppedFPS = [];
startTime = new Date().getTime();
- intID = window.setInterval(calculateStats, 1000);
+ if (statsEnabled)
+ intID = window.setInterval(calculateStats, 1000);
});
video.addEventListener("error", function() { endTest(false); }, false);
@@ -69,7 +71,8 @@
window.domAutomationController.send(successFlag);
}
- function startTest(url) {
+ function startTest(url, recordStats) {
+ statsEnabled = recordStats;
// End any previously started tests.
window.clearInterval(intID);
« no previous file with comments | « no previous file | chrome/test/functional/media/media_fps_perf.py » ('j') | chrome/test/functional/media/media_fps_perf.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698