Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
12d17614
Commit
12d17614
authored
Jul 28, 2017
by
gejun
Committed by
iCode
Jul 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Suppress warning of google/profiler.h since gperftools-2.2"
parents
f8055470
f49b38da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
profiler_linker.h
brpc/details/profiler_linker.h
+10
-1
No files found.
brpc/details/profiler_linker.h
View file @
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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment