Skip to content

Commit d619142

Browse files
committed
Add accessors
1 parent 678f39b commit d619142

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

base/timing.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ function gc_alloc_count(diff::GC_Diff)
6868
diff.malloc + diff.realloc + diff.poolalloc + diff.bigalloc
6969
end
7070

71+
lock_waiting_time(tid::Int16) = ccall(:jl_get_thread_lock_waiting_time, UInt64, (Int16,), tid)
72+
lock_waiting_time() = ccall(:jl_get_lock_waiting_time, UInt64, ())
73+
7174
# cumulative total time spent on compilation and recompilation, in nanoseconds
7275
function cumulative_compile_time_ns()
7376
comp = ccall(:jl_cumulative_compile_time_ns, UInt64, ())

0 commit comments

Comments
 (0)