You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stdlib/Profile/src/Profile.jl
+1-22
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ Profiling support.
10
10
- `Profile.print()` to print the report.
11
11
- `Profile.clear()` to clear the buffer.
12
12
- Send a $(Sys.isbsd() ?"SIGINFO (ctrl-t)":"SIGUSR1") signal to the process to automatically trigger a profile and print.
13
-
- `@count_lock_conflicts foo()` to count how many times a task had to wait to acquire a lock.
14
13
15
14
## Memory profiling
16
15
- `Profile.Allocs.@profile [sample_rate=0.1] foo()` to sample allocations within a specific call. A sample rate of 1.0 will record everything; 0.0 will record nothing.
@@ -45,7 +44,7 @@ const nmeta = 4 # number of metadata fields per block (threadid, taskid, cpu_cyc
45
44
# deprecated functions: use `getdict` instead
46
45
lookup(ip::UInt) =lookup(convert(Ptr{Cvoid}, ip))
47
46
48
-
export@profile, @count_lock_conflicts
47
+
export@profile
49
48
50
49
"""
51
50
@profile
@@ -64,26 +63,6 @@ macro profile(ex)
64
63
end
65
64
end
66
65
67
-
68
-
"""
69
-
@count_lock_conflicts
70
-
71
-
`count_lock_conflicts <expression>` runs your expression while monitoring how many times a task had to wait
0 commit comments