* profil.h (PROFADDR): Prevent overflow when text segments are larger than
256k. * profil.c (profthr_func): Raise thread priority for more accurate sampling. * path.cc (hash_path_name): Use ino_t as type.
This commit is contained in:
@@ -62,6 +62,8 @@ profthr_func (LPVOID arg)
|
||||
struct profinfo *p = (struct profinfo *) arg;
|
||||
u_long pc, idx;
|
||||
|
||||
SetThreadPriority(p->profthr, THREAD_PRIORITY_TIME_CRITICAL);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
pc = (u_long) get_thrpc (p->targthr);
|
||||
|
Reference in New Issue
Block a user