mirror of
https://github.com/isar/libmdbx.git
synced 2025-11-07 07:18:56 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user