I want to profile a module which is tested by a test. Following the
documentation
(http://docs.julialang.org/en/release-0.4/manual/profile/#options-for-controlling-the-display-of-profile-results),
I know how to profile them (module + test) together:
@profile include("test.jl")
But I have no idea for how to do the profiling only for the module.
A second question is about the first number of each line in profiler's
output. For example, the output from Julia Documentation:
julia> Profile.print()
23 client.jl; _start; line: 373
23 client.jl; run_repl; line: 166
23 client.jl; eval_user_input; line: 91
23 profile.jl; anonymous; line: 14
8 none; myfunc; line: 2
8 dSFMT.jl; dsfmt_gv_fill_array_close_open!; line: 128
15 none; myfunc; line: 3
2 reduce.jl; max; line: 35
2 reduce.jl; max; line: 36
11 reduce.jl; max; line: 37
Is it appropriate to interpret the numbers 23, 8, 15, etc as the number of
times the line is run or the time has been spent (relatively) on that line?
I searched the group and there is no threads with a similar topic. Any
comments? Thanks!