mdbx: enable solib profiling with -pg and gprof with GLIBC >= 2.37.

However such profiling requires https://sourceware.org/bugzilla/show_bug.cgi?id=29438 to be fixed.
This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-08-04 14:28:35 +03:00
parent a44eb1accb
commit 77635116c6
3 changed files with 37 additions and 2 deletions

View File

@@ -195,6 +195,16 @@
#endif
#endif /* -Walignment-reduction-ignored */
#ifndef MDBX_EXCLUDE_FOR_GPROF
#ifdef ENABLE_GPROF
#define MDBX_EXCLUDE_FOR_GPROF \
__attribute__((__no_instrument_function__, \
__no_profile_instrument_function__))
#else
#define MDBX_EXCLUDE_FOR_GPROF
#endif /* ENABLE_GPROF */
#endif /* MDBX_EXCLUDE_FOR_GPROF */
#ifdef __cplusplus
extern "C" {
#endif