mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-28 22:02:12 +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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue