STT-tensorflow/tensorflow/lite/profiling/platform_profiler.h
Juho Ha 9394966102 Enable ATrace profiler by Android system property.
ATrace profiler is included in Android library always.
To enable ATrace profiler when running app,
users need to set 'debug.tflite.trace' property.

$ adb shell setprop debug.tflite.trace 1

PiperOrigin-RevId: 328684900
Change-Id: I3fa9511a58e9055c3c4d371f904daf8c530abcf4
2020-08-27 00:07:25 -07:00

31 lines
1.0 KiB
C++

/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef TENSORFLOW_LITE_PROFILING_PLATFORM_PROFILER_H_
#define TENSORFLOW_LITE_PROFILING_PLATFORM_PROFILER_H_
#include <memory>
#include "tensorflow/lite/core/api/profiler.h"
namespace tflite {
namespace profiling {
std::unique_ptr<tflite::Profiler> MaybeCreatePlatformProfiler();
} // namespace profiling
} // namespace tflite
#endif // TENSORFLOW_LITE_PROFILING_PLATFORM_PROFILER_H_