mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 05:50:14 +00:00
Fix gprof timing
* sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick frequency instead of tick length in us.
This commit is contained in:
parent
593285ac15
commit
6f8222a1c5
@ -3,6 +3,8 @@
|
|||||||
* sysdeps/mach/hurd/profil.c (update_waiter): Initialize
|
* sysdeps/mach/hurd/profil.c (update_waiter): Initialize
|
||||||
profil_reply_port.
|
profil_reply_port.
|
||||||
(profile_waiter): Do not initialize profil_reply_port.
|
(profile_waiter): Do not initialize profil_reply_port.
|
||||||
|
* sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
|
||||||
|
frequency instead of tick length in us.
|
||||||
|
|
||||||
2016-04-18 Wilco Dijkstra <wdijkstr@arm.com>
|
2016-04-18 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ update_waiter (u_short *sample_buffer, size_t size, size_t offset, u_int scale)
|
|||||||
int
|
int
|
||||||
__profile_frequency (void)
|
__profile_frequency (void)
|
||||||
{
|
{
|
||||||
return profile_tick;
|
return 1000000 / profile_tick;
|
||||||
}
|
}
|
||||||
libc_hidden_def (__profile_frequency)
|
libc_hidden_def (__profile_frequency)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user