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

Unified Diff: tracing/tracing/model/source_info/source_info.html

Issue 1276003004: Process v8 sampling data into the trace model. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 5 years, 4 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: tracing/tracing/model/source_info/source_info.html
diff --git a/tracing/tracing/model/source_info/source_info.html b/tracing/tracing/model/source_info/source_info.html
index 8479e573ad762abf335166920c44d8de4304c410..75aad32d9630505e576a0dc912b184fac0576165 100644
--- a/tracing/tracing/model/source_info/source_info.html
+++ b/tracing/tracing/model/source_info/source_info.html
@@ -26,9 +26,12 @@ tr.exportTo('tr.model.source_info', function() {
},
toString: function() {
+ var str = '';
+ if (this.file_)
+ str += this.file_;
if (this.line_ > 0)
- return this.file_ + ':' + this.line_;
- return this.file_;
+ str += ':' + this.line_;
+ return str;
}
};
« no previous file with comments | « tracing/tracing/extras/importer/trace_event_importer_test.html ('k') | tracing/tracing/model/stack_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698