aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/function_ops.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-04-30 04:21:09 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-30 04:23:46 -0700
commit914796d5e9bc7b0c619b53c7eb24cfe7d6c7fb9b (patch)
tree17a2ec7b1a0902ebaf25451a418825e834e57571 /tensorflow/core/kernels/function_ops.cc
parentc2186af6c28f8817122b27f0cd29e16daeae68f1 (diff)
Cleaning up tracing code.
PiperOrigin-RevId: 194768567
Diffstat (limited to 'tensorflow/core/kernels/function_ops.cc')
-rw-r--r--tensorflow/core/kernels/function_ops.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/core/kernels/function_ops.cc b/tensorflow/core/kernels/function_ops.cc
index f8e0267578..8f66f0a7b9 100644
--- a/tensorflow/core/kernels/function_ops.cc
+++ b/tensorflow/core/kernels/function_ops.cc
@@ -324,7 +324,7 @@ class RemoteCallOp : public AsyncOpKernel {
handle = cached_entry->second;
} else {
VLOG(1) << "Instantiating " << func_.name() << " on " << target_device;
- port::Tracing::TraceMe activity(strings::StrCat(
+ tracing::ScopedActivity activity(strings::StrCat(
"RemoteCall: Instantiate: ", func_.name(), " on ", target_device));
OP_REQUIRES_OK_ASYNC(
ctx,
@@ -355,12 +355,12 @@ class RemoteCallOp : public AsyncOpKernel {
args.push_back(argument);
}
auto* rets = new std::vector<Tensor>;
- auto* trace = new port::Tracing::TraceMe(strings::StrCat(
+ auto* activity = new tracing::ScopedActivity(strings::StrCat(
"RemoteCall: Run: ", func_.name(), " on ", target_device));
VLOG(1) << "Running " << func_.name() << " on " << target_device
<< " with handle: " << handle;
lib->Run(opts, handle, args, rets,
- [rets, trace, done, ctx](const Status& status) {
+ [rets, activity, done, ctx](const Status& status) {
if (!status.ok()) {
ctx->SetStatus(status);
} else {
@@ -369,7 +369,7 @@ class RemoteCallOp : public AsyncOpKernel {
}
}
delete rets;
- delete trace;
+ delete activity;
done();
});
}