Expose prof_data testing internals only in prof tests

This commit is contained in:
Yinan Zhang
2020-03-31 10:13:55 -07:00
parent f43ac8543e
commit 8118056c03
6 changed files with 16 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
#include "jemalloc/internal/prof_data.h"
#define NTHREADS 4
#define NALLOCS_PER_THREAD 50
#define DUMP_INTERVAL 1

View File

@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
#include "jemalloc/internal/prof_data.h"
static void
mallctl_bool_get(const char *name, bool expected, const char *func, int line) {
bool old;

View File

@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
#include "jemalloc/internal/prof_data.h"
static int
prof_dump_open_file_intercept(const char *filename, int mode) {
int fd;

View File

@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
#include "jemalloc/internal/prof_data.h"
TEST_BEGIN(test_prof_realloc) {
tsd_t *tsd;
int flags;