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

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

Issue 2338583002: Make clock sync latency metric go between each pair of clock domains. (Closed)
Patch Set: fix test Created 4 years, 3 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/clock_sync_manager.html
diff --git a/tracing/tracing/model/clock_sync_manager.html b/tracing/tracing/model/clock_sync_manager.html
index 82531ce46a3b8b41ea444bfaba3890340f22ef74..724a9675f59a08901f86424fd9f3020df32fba32 100644
--- a/tracing/tracing/model/clock_sync_manager.html
+++ b/tracing/tracing/model/clock_sync_manager.html
@@ -147,30 +147,33 @@ tr.exportTo('tr.model', function() {
* domains are viable candidates, the one with the clock domain ID that is
* the first alphabetically is selected.
*/
- getModelTimeTransformer: function(domainId) {
- return this.getModelTimeTransformerRaw_(domainId).fn;
+ getModelTimeTransformer: function(domainId, targetDomainId) {
charliea (OOO until 10-5) 2016/09/21 18:05:33 We don't need this function to accept a targetDoma
alexandermont 2016/09/21 19:26:40 Done
+ return this.getModelTimeTransformerRaw_(domainId, targetDomainId).fn;
},
/**
* Returns the error associated with the transformation given by
* |getModelTimeTransformer(domainId)|.
*/
- getModelTimeTransformerError: function(domainId) {
- return this.getModelTimeTransformerRaw_(domainId).error;
+ getModelTimeTransformerError: function(domainId, targetDomainId) {
charliea (OOO until 10-5) 2016/09/21 18:05:33 Hmmm, this doesn't make any sense: getModelTimeTra
alexandermont 2016/09/21 19:26:40 Done
+ return this.getModelTimeTransformerRaw_(domainId, targetDomainId).error;
},
- getModelTimeTransformerRaw_: function(domainId) {
+ getModelTimeTransformerRaw_: function(domainId, targetDomainId) {
charliea (OOO until 10-5) 2016/09/21 18:05:33 As mentioned above, having a "modelTimeTransformer
alexandermont 2016/09/21 19:26:40 Done
this.onDomainSeen_(domainId);
if (!this.modelDomainId_)
this.selectModelDomainId_();
+ if (targetDomainId === undefined)
+ targetDomainId = this.modelDomainId_;
+
var transformer =
- this.getTransformerBetween_(domainId, this.modelDomainId_);
+ this.getTransformerBetween_(domainId, targetDomainId);
if (!transformer) {
throw new Error('No clock sync markers exist pairing clock domain "' +
- domainId + '" ' + 'with model clock domain "' +
- this.modelDomainId_ + '".');
+ domainId + '" ' + 'with target clock domain "' +
+ targetDomainId + '".');
}
return transformer;

Powered by Google App Engine
This is Rietveld 408576698