mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-30 16:47:29 +03:00
Expose prof_data testing internals only in prof tests
This commit is contained in:
parent
f43ac8543e
commit
8118056c03
6 changed files with 16 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue