You create a Web Part that calls a function named long Call. You discover that long Call takes a
long time to execute. You need to display in the Developer Dashboard how long it takes to
execute long Call. Which code segment should you use?
A.
Using monitoredScope As New SPMonitoredScope(“Long Call”) longCall() End Using
B.
Monitor.Enter(“Long Call”) If True Then longCall() End If Monitor.[Exit](“Long Call”)
C.
Dim startTime As DateTime = DateTime.Now longCall() Trace.TraceWarning(“Long Call ” &
DateTime.Now.Subtract(startTime).Seconds)
D.
Dim startTime As DateTime = DateTime.Now longCall() Trace.Write(“Long Call ” &
DateTime.Now.Subtract(startTime).Seconds)