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

@ -61,6 +61,15 @@ prof_sys_thread_name_fetch(tsd_t *tsd) {
#undef THREAD_NAME_MAX_LEN
}
int
prof_getpid(void) {
#ifdef _WIN32
return GetCurrentProcessId();
#else
return getpid();
#endif
}
static void
prof_dump_check_possible_error(bool err_cond, const char *format, ...) {
assert(!prof_dump_error);