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

Unified Diff: chrome/browser/resources/tracing/timeline_model.js

Issue 8359025: Tons of timeline tweaks (Closed)
Patch Set: Style fixes Created 9 years, 2 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/browser/resources/tracing/timeline_model.js
diff --git a/chrome/browser/resources/tracing/timeline_model.js b/chrome/browser/resources/tracing/timeline_model.js
index 35858186d5c81e5734687349cabb53f0bab059ca..8d57a3cc38284021b05c1b7cc592ed594cf6e793 100644
--- a/chrome/browser/resources/tracing/timeline_model.js
+++ b/chrome/browser/resources/tracing/timeline_model.js
@@ -120,8 +120,8 @@ cr.define('tracing', function() {
* Comparison between threads that orders first by pid,
* then by names, then by tid.
*/
- TimelineThread.compare = function(x,y) {
- if(x.parent.pid != y.parent.pid) {
+ TimelineThread.compare = function(x, y) {
+ if (x.parent.pid != y.parent.pid) {
return x.parent.pid - y.parent.pid;
}
@@ -132,7 +132,7 @@ cr.define('tracing', function() {
return tmp;
} else if (x.name) {
return -1;
- } else if (y.name){
+ } else if (y.name) {
return 1;
} else {
return x.tid - y.tid;
@@ -304,7 +304,7 @@ cr.define('tracing', function() {
}
} else {
this.importErrors.push('Unrecognized event phase: ' + event.ph +
- '(' + event.name + ')');
+ '(' + event.name + ')');
}
}
this.pruneEmptyThreads();

Powered by Google App Engine
This is Rietveld 408576698