Move file handling logic in prof_data to prof_sys

This commit is contained in:
Yinan Zhang
2020-04-02 16:39:41 -07:00
parent 767a2e1790
commit 4736fb4fc9
10 changed files with 239 additions and 243 deletions

View File

@@ -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

View File

@@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
#include "jemalloc/internal/prof_sys.h"
static bool did_prof_dump_open;
static int

View File

@@ -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;

View File

@@ -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;

View File

@@ -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) {