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); |