pluggable_profiler.cc
imports tensorflow/core/platform/errors.himports tensorflow/core/platform/logging.h
SHA-256b355fb796ac01574d4f52bf67b7f7781769b8f5daf7256718b03a48afed2bb7c
MaleculeMd(In₄)
Evidence
1/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15#include <cstddef>
16#include <cstdint>
17#include <functional>
18#include <memory>
19#include <utility>
20#include <vector>
21
22#include "absl/memory/memory.h"
23#include "absl/status/status.h"
24#include "tensorflow/c/c_api_macros.h"
25#include "tensorflow/c/c_api_macros_internal.h"
26#include "tensorflow/c/experimental/pluggable_profiler/pluggable_profiler_internal.h"
27#include "tensorflow/c/tf_status_helper.h"
28#include "tensorflow/core/common_runtime/device/device_utils.h"
29#include "tensorflow/core/platform/errors.h"
30#include "tensorflow/core/platform/logging.h"
31#include "tensorflow/core/platform/mutex.h"
32#include "tensorflow/core/platform/status.h"
33#include "tensorflow/core/profiler/lib/profiler_factory.h"
34#include "tensorflow/core/profiler/lib/profiler_interface.h"
35#include "tsl/profiler/protobuf/profiler_options.pb.h"
36#include "tsl/profiler/protobuf/xplane.pb.h"
37
38namespace tensorflow {
⋯5 lines
70:58… ofilerInterface {
71 public:
72 // The caller must have validated profiler_fns and profiler.
73 static std::unique_ptr<tensorflow::profiler::ProfilerInt …