Relocate a few prof utilities to the right modules

This commit is contained in:
Yinan Zhang 2020-04-03 10:26:03 -07:00
parent 4736fb4fc9
commit d128efcb6a
9 changed files with 30 additions and 30 deletions

View file

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