Commit 2dc60b73 authored by gejun's avatar gejun
parents e4a8d9b1 12d17614
......@@ -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