mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-01 01:28:00 +03:00
Relocate a few prof utilities to the right modules
This commit is contained in:
parent
4736fb4fc9
commit
d128efcb6a
9 changed files with 30 additions and 30 deletions
16
src/prof.c
16
src/prof.c
|
|
@ -78,16 +78,9 @@ uint64_t prof_interval = 0;
|
|||
|
||||
size_t lg_prof_sample;
|
||||
|
||||
/* Non static to enable profiling. */
|
||||
malloc_mutex_t bt2gctx_mtx;
|
||||
|
||||
malloc_mutex_t tdatas_mtx;
|
||||
|
||||
static uint64_t next_thr_uid;
|
||||
static malloc_mutex_t next_thr_uid_mtx;
|
||||
|
||||
malloc_mutex_t prof_dump_mtx;
|
||||
|
||||
/* Do not dump any profiles until bootstrapping is complete. */
|
||||
bool prof_booted = false;
|
||||
|
||||
|
|
@ -473,15 +466,6 @@ prof_sample_event_handler(tsd_t *tsd, uint64_t elapsed) {
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
prof_getpid(void) {
|
||||
#ifdef _WIN32
|
||||
return GetCurrentProcessId();
|
||||
#else
|
||||
return getpid();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
prof_fdump(void) {
|
||||
tsd_t *tsd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue