Commit f49b38da authored by chenzhangyi01's avatar chenzhangyi01

Suppress warning of google/profiler.h since gperftools-2.2

Change-Id: Ifcc142565723ec1bbcd1d66af85187b21cfc7683
parent ab4bea5d
......@@ -8,7 +8,16 @@
#define BRPC_PROFILER_LINKER_H
#if defined(BRPC_ENABLE_CPU_PROFILER) || defined(BAIDU_RPC_ENABLE_CPU_PROFILER)
#include <google/profiler.h>
#ifdef __cplusplus
extern "C" {
#endif
// Suppress warning of `google/profiler.h' which has been deprecated since
// gperftools-2.2
void ProfilerStart(const char*);
void ProfilerStop(const char*);
#ifdef __cplusplus
}
#endif
#endif
#if defined(BRPC_ENABLE_HEAP_PROFILER) || defined(BAIDU_RPC_ENABLE_HEAP_PROFILER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment