mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 06:13:13 +00:00
High Resolution Timestamps for Profiling
This commit is contained in:
committed by
David Goldblatt
parent
d82a164d0d
commit
4aea743279
@@ -26,13 +26,12 @@ nstime_monotonic_mock(void) {
|
||||
return monotonic_mock;
|
||||
}
|
||||
|
||||
static bool
|
||||
static void
|
||||
nstime_update_mock(nstime_t *time) {
|
||||
nupdates_mock++;
|
||||
if (monotonic_mock) {
|
||||
nstime_copy(time, &time_mock);
|
||||
}
|
||||
return !monotonic_mock;
|
||||
}
|
||||
|
||||
static unsigned
|
||||
|
||||
Reference in New Issue
Block a user