mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-15 21:27:18 +03:00
Move file handling logic in prof_data to prof_sys
This commit is contained in:
parent
767a2e1790
commit
4736fb4fc9
10 changed files with 239 additions and 243 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue