diff options
| author | Arseny Smirnov <arseny30@gmail.com> | 2022-02-10 18:26:11 +0100 |
|---|---|---|
| committer | Arseny Smirnov <arseny30@gmail.com> | 2022-02-10 18:33:23 +0100 |
| commit | 987e875520c589ece276460e72a22c5b3cdb3f68 (patch) | |
| tree | f1e3a679688b5fa12aa144c36d09de7a67061f05 /memprof | |
| parent | 6bb365567b0033cbc50ff705c6d4a3840be07c82 (diff) | |
FlatHashMap: support mem_stat->rss in memory benchmark; move memory benchmark in other folder, fix build.
Diffstat (limited to 'memprof')
| -rw-r--r-- | memprof/memprof.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/memprof/memprof.cpp b/memprof/memprof.cpp index 519e3f320..d45d5e9b9 100644 --- a/memprof/memprof.cpp +++ b/memprof/memprof.cpp @@ -27,17 +27,17 @@ bool is_memprof_on() { return true; } +#define my_assert(f) \ + if (!(f)) { \ + std::abort(); \ + } + #if USE_MEMPROF_SAFE double get_fast_backtrace_success_rate() { return 0; } #else -#define my_assert(f) \ - if (!(f)) { \ - std::abort(); \ - } - #if TD_LINUX extern void *__libc_stack_end; #endif |
