1 /* Copyright 2015 The TensorFlow Authors. All Rights Reserved. 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 ==============================================================================*/ 15 16 #ifndef TENSORFLOW_CORE_PLATFORM_DEFAULT_TRACING_IMPL_H_ 17 #define TENSORFLOW_CORE_PLATFORM_DEFAULT_TRACING_IMPL_H_ 18 19 // Stub implementations of tracing functionality. 20 21 // IWYU pragma: private, include "third_party/tensorflow/core/platform/tracing.h" 22 // IWYU pragma: friend third_party/tensorflow/core/platform/tracing.h 23 24 #include "tensorflow/core/platform/tracing.h" 25 26 // Definitions that do nothing for platforms that don't have underlying thread 27 // tracing support. 28 #define TRACELITERAL(a) \ 29 do { \ 30 } while (0) 31 #define TRACESTRING(s) \ 32 do { \ 33 } while (0) 34 #define TRACEPRINTF(format, ...) \ 35 do { \ 36 } while (0) 37 38 namespace tensorflow { 39 namespace tracing { 40 IsEnabled()41inline bool EventCollector::IsEnabled() { return false; } 42 43 } // namespace tracing 44 } // namespace tensorflow 45 46 #endif // TENSORFLOW_CORE_PLATFORM_DEFAULT_TRACING_IMPL_H_ 47