[tf.data] Add traceme for prefetch with slack time
PiperOrigin-RevId: 256402325
This commit is contained in:
parent
9f9b8a5101
commit
0cd2977c08
@ -128,7 +128,13 @@ class PrefetchDatasetOp::Dataset : public DatasetBase {
|
|||||||
tf_shared_lock l(mu_);
|
tf_shared_lock l(mu_);
|
||||||
buffer_limit = auto_tuner_.buffer_limit();
|
buffer_limit = auto_tuner_.buffer_limit();
|
||||||
}
|
}
|
||||||
return strings::StrCat(prefix(), "#buffer_limit=", buffer_limit, "#");
|
string prefetch_with_slack_trace = "";
|
||||||
|
if (dataset()->slack_period_ > 0) {
|
||||||
|
int64 slack_us = slack_us_;
|
||||||
|
prefetch_with_slack_trace = strings::StrCat(",slack=", slack_us);
|
||||||
|
}
|
||||||
|
return strings::StrCat(prefix(), "#buffer_limit=", buffer_limit,
|
||||||
|
prefetch_with_slack_trace, "#");
|
||||||
}
|
}
|
||||||
|
|
||||||
Status Initialize(IteratorContext* ctx) override {
|
Status Initialize(IteratorContext* ctx) override {
|
||||||
|
Loading…
Reference in New Issue
Block a user