Move file handling logic in prof_data to prof_sys
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "test/jemalloc_test.h"
|
||||
|
||||
#include "jemalloc/internal/prof_data.h"
|
||||
#include "jemalloc/internal/prof_sys.h"
|
||||
|
||||
#define NTHREADS 4
|
||||
#define NALLOCS_PER_THREAD 50
|
||||
|
@@ -1,5 +1,7 @@
|
||||
#include "test/jemalloc_test.h"
|
||||
|
||||
#include "jemalloc/internal/prof_sys.h"
|
||||
|
||||
static bool did_prof_dump_open;
|
||||
|
||||
static int
|
||||
|
@@ -1,5 +1,7 @@
|
||||
#include "test/jemalloc_test.h"
|
||||
|
||||
#include "jemalloc/internal/prof_sys.h"
|
||||
|
||||
#define TEST_PREFIX "test_prefix"
|
||||
|
||||
static bool did_prof_dump_open;
|
||||
|
@@ -1,5 +1,7 @@
|
||||
#include "test/jemalloc_test.h"
|
||||
|
||||
#include "jemalloc/internal/prof_sys.h"
|
||||
|
||||
static const char *test_filename = "test_filename";
|
||||
static bool did_prof_dump_open;
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
#include "test/jemalloc_test.h"
|
||||
|
||||
#include "jemalloc/internal/prof_data.h"
|
||||
#include "jemalloc/internal/prof_sys.h"
|
||||
|
||||
static int
|
||||
prof_dump_open_file_intercept(const char *filename, int mode) {
|
||||
|
Reference in New Issue
Block a user