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
functionprofile_test(n)
for i =1:n
A =randn(100,100,20)
m =maximum(A)
Am =mapslices(sum, A; dims=2)
B = A[:,:,5]
Bsort =mapslices(sort, B; dims=1)
b =rand(100)
C = B.*b
endendprofile_test(1) # run once to trigger compilationusing Profile
using ProfileView
Profile.clear() # in case we have any previous profiling data@profileprofile_test(10)
ProfileView.view()
ProfileView.view()
ERROR: MethodError: no method matching view()
Closest candidates are:
view(::AbstractArray, ::Any...) where N at subarray.jl:155
Stacktrace:
[1] top-level scope at REPL[348]:1
versioninfo()
Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Xeon(R) W-2145 CPU @ 3.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: