[shell-perf-web] Fix messed up refactoring that was breaking vblank tracking



commit ac70d88228a9841ee19c19d2fc219dd2216fdc40
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed May 26 22:56:46 2010 -0400

    Fix messed up refactoring that was breaking vblank tracking
    
    VBlank times from glx.swapComplete vents weren't getting translated
    properly causing the marker lines for VBlank to be add random
    places.

 static/log_viewer.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/static/log_viewer.js b/static/log_viewer.js
index 4c3a985..cd9b689 100644
--- a/static/log_viewer.js
+++ b/static/log_viewer.js
@@ -181,15 +181,15 @@ EventRun.prototype = {
 	    // perf.statisticsCollected is stored every time we collect
 	    // statistics, but repeated values are omitted, so store
 	    // *all* values into the arrays we are collecting
-	    if (event.name == 'perf.statisticsCollected') {
+	    if (name == 'perf.statisticsCollected') {
 		this.statTimes.push(time);
 		for (name in this.statistics) {
 		    statistic = this.statistics[name];
-		    statistic.values.push(event.currentValue);
+		    statistic.values.push(statistic.currentValue);
 		}
 	    }
 
-	    if (event.name == 'glx.swapComplete') {
+	    if (name == 'glx.swapComplete') {
 		// the argument is a time in microseconds since epoch
 		e[2] = (e[2] - start) / 1000000;
 	    }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]